diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-01-29 11:07:42 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-01-29 11:07:42 -0500 |
commit | 0371acff89b14b9bdcb03e72fd9637e26e6b517c (patch) | |
tree | f5878c9c07705379d137843cb8f92e3cdf7c20a8 /doc/plugin-events.markdown | |
parent | 3bf4789be255650b64f42231f41383cb13b65572 (diff) |
Move English documentation to folder en_US
Diffstat (limited to 'doc/plugin-events.markdown')
-rw-r--r-- | doc/plugin-events.markdown | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/doc/plugin-events.markdown b/doc/plugin-events.markdown deleted file mode 100644 index f4db8ff3..00000000 --- a/doc/plugin-events.markdown +++ /dev/null @@ -1,27 +0,0 @@ -Using Events -============ - -Kanboard use internally the [Symfony EventDispatcher component](https://symfony.com/doc/2.3/components/event_dispatcher/index.html) to manage internal events. - -Event Listening ---------------- - -```php -$this->on('app.bootstrap', function($container) { - // Do something -}); -``` - -- The first argument is the event name (string) -- The second argument is a PHP callable function (closure or class method) - -Adding a new event ------------------- - -To add a new event, you have to call the method `register()` of the class `Kanboard\Core\Event\EventManager`: - -```php -$this->eventManager->register('my.event.name', 'My new event description'); -``` - -These events can be used by other components of Kanboard like automatic actions. |