summaryrefslogtreecommitdiff
path: root/doc/plugin-registration.markdown
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-06 16:00:42 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-06 16:00:42 -0500
commit42a837a83395fc2ff5b18d60b436c21ee26a038c (patch)
treef849bd965b1cc65dc0179de22fa65fb3979f51f8 /doc/plugin-registration.markdown
parent34048c28047f6107d5dd72679081544c9adfa4cf (diff)
Update doc and changelog
Diffstat (limited to 'doc/plugin-registration.markdown')
-rw-r--r--doc/plugin-registration.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/plugin-registration.markdown b/doc/plugin-registration.markdown
index 23fc036e..e6d33794 100644
--- a/doc/plugin-registration.markdown
+++ b/doc/plugin-registration.markdown
@@ -85,7 +85,7 @@ Plugin Translations
Plugin can be translated in the same way the rest of the application. You must load the translations yourself when the session is created:
```php
-$this->on('session.bootstrap', function($container) {
+$this->on('app.bootstrap', function($container) {
Translator::load($container['config']->getCurrentLanguage(), __DIR__.'/Locale');
});
```
@@ -126,12 +126,12 @@ $this->container['hourlyRate']->getAll();
Keys of the containers are unique across the application. If you override an existing class you will change the default behavior.
Event Listening
-----------------
+---------------
Kanboard use internal events and your plugin can listen and perform actions on these events.
```php
-$this->on('session.bootstrap', function($container) {
+$this->on('app.bootstrap', function($container) {
// Do something
});
```