diff --git a/lib/EventManagement.php b/lib/EventManagement.php index 98dc2f8bdfda61be9e40a0a1e73c874fd32ce1e2..423b7c02e4152d01ec9be054c4ecb5000dba17bb 100644 --- a/lib/EventManagement.php +++ b/lib/EventManagement.php @@ -26,7 +26,16 @@ class EventManagement{ * @var array of EventListener */ private $handlers = array(); - + + /** + * Add a new handler, which is called on a new incoming event. + * + * @param EventListener $handler + */ + public function registerHandler($handler){ + $this->handlers[] = $handler; + } + /** * Get a list of event ids *