summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-20 13:11:41 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-20 13:11:41 -0400
commita0124b45f9dab8a0f7d4879d4ea147b414b25bf2 (patch)
tree4f1a419104374591e269e9f32838ca500245fe1a /doc
parentfe57edd9e87832dbd14ea8ffd2dc2f16ac1ceb6f (diff)
Add sub namespace for plugins
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins.markdown8
1 files changed, 4 insertions, 4 deletions
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