From a0124b45f9dab8a0f7d4879d4ea147b414b25bf2 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 20 Sep 2015 13:11:41 -0400 Subject: Add sub namespace for plugins --- doc/plugins.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/plugins.markdown b/doc/plugins.markdown index 7f32cf0a..4388f7c6 100644 --- a/doc/plugins.markdown +++ b/doc/plugins.markdown @@ -47,9 +47,9 @@ Example of `Plugin.php` file (`plugins/Foobar/Plugin.php`): namespace Plugin\Foobar; -use Core\PluginBase; +use Core\Plugin\Base; -class Plugin extends PluginBase +class Plugin extends Plugin\Base { public function initialize() { @@ -58,14 +58,14 @@ class Plugin extends PluginBase } ``` -This file should contains a class `Plugin` defined under the namespace `Plugin\Yourplugin` and extends `Core\PluginBase`. +This file should contains a class `Plugin` defined under the namespace `Plugin\Yourplugin` and extends `Core\Plugin\Base`. The only required method is `initialize()`. This method is called for each request when the plugin is loaded. Plugin methods -------------- -Available methods from `PluginBase`: +Available methods from `Plugin\Base`: - `initialize()`: Executed when the plugin is loaded - `getClasses()`: Return all classes that should be stored in the dependency injection container -- cgit v1.2.3