Kanboard Documentation

Using Events

Kanboard uses the Symfony EventDispatcher component internally to manage events.

Event Listening

$this->on('app.bootstrap', function($container) {
    // Do something
});
  • The first argument is the event name (a string).
  • The second argument is a PHP callable function (a closure or class method).

Adding a New Event

To add a new event, call the register() method of the Kanboard\Core\Event\EventManager class:

$this->eventManager->register('my.event.name', 'My new event description');

These events can be used by other components of Kanboard, such as automatic actions.