diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-07 18:15:32 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-07 18:15:32 -0400 |
commit | 714bdb0d024c952cafd7924212b862ae31d7f1d4 (patch) | |
tree | ea92eeed3741db65d8117e0fb427763b94f1416d /app/Core/Plugin/Base.php | |
parent | 55ee906ba36cf66c3a390c98dde75e241de26e65 (diff) |
Added method onStartup() for plugins
Diffstat (limited to 'app/Core/Plugin/Base.php')
-rw-r--r-- | app/Core/Plugin/Base.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Core/Plugin/Base.php b/app/Core/Plugin/Base.php index 381b8bb3..ba95e3de 100644 --- a/app/Core/Plugin/Base.php +++ b/app/Core/Plugin/Base.php @@ -62,7 +62,7 @@ abstract class Base extends \Kanboard\Core\Base { $container = $this->container; - $this->container['dispatcher']->addListener($event, function () use ($container, $callback) { + $this->dispatcher->addListener($event, function () use ($container, $callback) { call_user_func($callback, $container); }); } @@ -70,7 +70,7 @@ abstract class Base extends \Kanboard\Core\Base /** * Get plugin name * - * This method should be overrided by your Plugin class + * This method should be overridden by your Plugin class * * @access public * @return string @@ -83,7 +83,7 @@ abstract class Base extends \Kanboard\Core\Base /** * Get plugin description * - * This method should be overrided by your Plugin class + * This method should be overridden by your Plugin class * * @access public * @return string @@ -96,7 +96,7 @@ abstract class Base extends \Kanboard\Core\Base /** * Get plugin author * - * This method should be overrided by your Plugin class + * This method should be overridden by your Plugin class * * @access public * @return string @@ -109,7 +109,7 @@ abstract class Base extends \Kanboard\Core\Base /** * Get plugin version * - * This method should be overrided by your Plugin class + * This method should be overridden by your Plugin class * * @access public * @return string @@ -122,7 +122,7 @@ abstract class Base extends \Kanboard\Core\Base /** * Get plugin homepage * - * This method should be overrided by your Plugin class + * This method should be overridden by your Plugin class * * @access public * @return string |