Arty
Well-known member
Is it possible to install add-on with few lines of code?
For example I have add-on variable:
but then I don't see a way to install it.
$addOn is instance of XF/AddOn/AddOn class. I can see there is preInstall(), postDataImport() and postInstall() methods, but there are no functions for importing add-on's stuff.
For example I have add-on variable:
Code:
$addOnManager = \XF::app()->addOnManager();
$addOn = $addOnManager->getById($this->_addOnId);
$addOn is instance of XF/AddOn/AddOn class. I can see there is preInstall(), postDataImport() and postInstall() methods, but there are no functions for importing add-on's stuff.