Get the addon manager.
public static addonManager ( ) : |
||
return |
$addonManager = Gdn::addonManager(); $addonManager->enableAddon('myAddon');
$addonManager = Gdn::addonManager(); $addonManager->disableAddon('myAddon');
$addonManager = Gdn::addonManager(); $addonManager->installAddon('https://example.com/addons/myAddon.zip');Package library: The addonManager is a package library in the Vanilla forums. It is part of the core functionality of the forums and is used by many add-ons and plugins. Developers can also use this package in their own projects to manage add-ons.