diff --git a/Event/EventManager.php b/Event/EventManager.php index 6698f4872..4ecc0e40e 100644 --- a/Event/EventManager.php +++ b/Event/EventManager.php @@ -75,7 +75,7 @@ class EventManager implements Mediator /** * {@inheritdoc} */ - public function trigger(string $group, string $id = '') /* : void */ + public function trigger(string $group, string $id = '', bool $reset = false) /* : void */ { if (isset($this->groups[$group])) { unset($this->groups[$group][$id]); diff --git a/Pattern/Mediator.php b/Pattern/Mediator.php index a54fdb56e..d4b48d926 100644 --- a/Pattern/Mediator.php +++ b/Pattern/Mediator.php @@ -79,11 +79,12 @@ interface Mediator extends \Countable * * @param string $group Group * @param string $id Event ID + * @param bool $reset Reset if success * * @return void * * @since 1.0.0 * @author Dennis Eichhorn */ - public function trigger(string $group, string $id) /* : void */; + public function trigger(string $group, string $id, bool $reset = false) /* : void */; }