summaryrefslogtreecommitdiff
path: root/doc/en_US/plugin-events.markdown
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-04-06 10:54:58 -0700
committerFrédéric Guillot <fred@kanboard.net>2018-04-06 10:54:58 -0700
commit0b306fa60ad84ea077111e0ff7b59208ba7bc8a3 (patch)
tree5d8941b5950ede2db8ca3fba0213792db0f07a50 /doc/en_US/plugin-events.markdown
parentac11220a1aa7ae30b8827d9bbf221888d3edd0a7 (diff)
Move documentation to https://docs.kanboard.org/
Diffstat (limited to 'doc/en_US/plugin-events.markdown')
-rw-r--r--doc/en_US/plugin-events.markdown27
1 files changed, 0 insertions, 27 deletions
diff --git a/doc/en_US/plugin-events.markdown b/doc/en_US/plugin-events.markdown
deleted file mode 100644
index f4db8ff3..00000000
--- a/doc/en_US/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.