$events
$events :array
Class Plugin Default Phile cache engine
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. |
on(string $eventKey,null|array $eventData = null): void
implements EventObserverInterface
string | $eventKey | |
null|array | $eventData |
None found |
getPluginPath(string $subPath = ''): string
get file path to plugin root (trailing slash) or to a sub-item
string | $subPath |
None found |