From 5b8a4283b3f78d19ca26e3962d452b96e242bcf6 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 14 Apr 2017 14:03:47 +0200 Subject: [PATCH] Allow trigger to path data --- Event/EventManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Event/EventManager.php b/Event/EventManager.php index b5b7a60b8..77739b48c 100644 --- a/Event/EventManager.php +++ b/Event/EventManager.php @@ -75,7 +75,7 @@ class EventManager /** * {@inheritdoc} */ - public function trigger(string $group, string $id = '') /* : void */ + public function trigger(string $group, string $id = '', $data) /* : void */ { if(!isset($this->callbacks[$group])) { return; @@ -86,7 +86,7 @@ class EventManager } if (!$this->hasOutstanding($group)) { - $this->callbacks[$group]['func'](); + $this->callbacks[$group]['func']($data); if ($this->callbacks[$group]['remove']) { $this->detach($group);