Add install, uninstall and reload in AddonHelper

This commit is contained in:
Art4 2025-02-04 08:03:32 +00:00
parent db37a93efa
commit 61fa36b227
2 changed files with 51 additions and 0 deletions

View file

@ -23,6 +23,27 @@ interface AddonHelper
*/
public function getAvailableAddons(): array;
/**
* Installs an addon.
*
* @param string $addonId name of the addon
*
* @return bool true on success or false on failure
*/
public function installAdodn(string $addonId): bool;
/**
* Uninstalls an addon.
*
* @param string $addonId name of the addon
*/
public function uninstallAddon(string $addonId): void;
/**
* Reload (uninstall and install) all updated addons.
*/
public function reloadAddons(): void;
/**
* Checks if the provided addon is enabled
*/