src/Dispatcher/Dispatcher.php
protected function trigger($event, ...$arguments)
    {
        if (!empty($this->handlers[$event])) {
            /** @var callable $handler */
            foreach ($this->handlers[$event] as $handler) {
                call_user_func_array($handler, $arguments);
            }
        }
    }
protected function trigger($event, ...$arguments)
    {
        if (!empty($this->handlers[$event])) {
            /** @var callable $handler */
            foreach ($this->handlers[$event] as $handler) {
                call_user_func_array($handler, $arguments);
            }
        }
    }
protected function trigger ( $ event , ... $ arguments ) { if ( ! empty ( $ this -> handlers [ $ event ] ) ) { /** @var callable $handler */ foreach ( $ this -> handlers [ $ event ] as $ handler ) { call_user_func_array ( $ handler , $ arguments ) ; } } }
Trigger a particular event.

@param string $event
@param mixed  ...$arguments
Trigger a particular event .