From 42a837a83395fc2ff5b18d60b436c21ee26a038c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 6 Dec 2015 16:00:42 -0500 Subject: Update doc and changelog --- doc/plugin-authorization-architecture.markdown | 2 +- doc/plugin-registration.markdown | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/plugin-authorization-architecture.markdown b/doc/plugin-authorization-architecture.markdown index 332313f0..f61d05b3 100644 --- a/doc/plugin-authorization-architecture.markdown +++ b/doc/plugin-authorization-architecture.markdown @@ -13,7 +13,7 @@ For each HTTP request: 1. Fetch user role for this project 2. Grant/Denied access based on the project access map -Extending access Map +Extending Access Map -------------------- The Access List (ACL) is based on the controller class name and the method name. 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 }); ``` -- cgit v1.2.3