Info
the Info class handles plugin’s info from plugin.json file.
Class-Namespace
use Bethropolis\PluginSystem\Info;
Class Methods
$this->loadConfig()
private
Loads the configuration from the config file.
$this->refreshPlugins()
Refreshes the list of plugins and plugin info.
$this->scanPluginsDirectory()
private
Scans the plugins directory and returns an array of plugin names.
$this->addPlugin($pluginName, $data)
Adds a plugin to the configuration.
$this->removePlugin($pluginName)
Removes a plugin from the configuration.
$this->modifyPluginData($pluginName, $data)
Modifies the plugin data for a specific plugin.
$this->getPlugins()
Retrieves the list of plugins as an array.
$this->saveConfig()
Saves the configuration data to a file.