*/
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
*/
return Addon::getAvailableList();
}
+ /**
+ * 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
+ {
+ return Addon::install($addonId);
+ }
+
+ /**
+ * Uninstalls an addon.
+ *
+ * @param string $addonId name of the addon
+ */
+ public function uninstallAddon(string $addonId): void
+ {
+ Addon::uninstall($addonId);
+ }
+
+ /**
+ * Reload (uninstall and install) all updated addons.
+ */
+ public function reloadAddons(): void
+ {
+ Addon::reload();
+ }
+
/**
* Checks if the provided addon is enabled
*/