$events
$events :array
the AbstractPlugin class for implementing a plugin for PhileCMS
initializePlugin(string $pluginKey,string $pluginDir,\Phile\Core\Event $eventBus,\Phile\Core\Config $config): void
Initializes the plugin.
try to keep all initialization in one method to have a clean class for the plugin-user
string | $pluginKey | |
string | $pluginDir | Root plugin directory this plugin is placed in. |
\Phile\Core\Event | $eventBus | Phile application event-bus. |
\Phile\Core\Config | $config | Phile application configuration. |