protected function invokeListeners($name, EventInterface $event, array $arguments)
    {
        $listeners = $this->getListeners($name);

        foreach ($listeners as $listener) {
            if ($event->isPropagationStopped()) {
                break;
            }

            call_user_func_array([$listener, 'handle'], $arguments);
        }
    }
protected function invokeListeners($name, EventInterface $event, array $arguments)
    {
        $listeners = $this->getListeners($name);

        foreach ($listeners as $listener) {
            if ($event->isPropagationStopped()) {
                break;
            }

            call_user_func_array([$listener, 'handle'], $arguments);
        }
    }
protected function invokeListeners ( $ name , EventInterface $ event , array $ arguments ) { $ listeners = $ this -> getListeners ( $ name ) ; foreach ( $ listeners as $ listener ) { if ( $ event -> isPropagationStopped ( ) ) { break ; } call_user_func_array ( [ $ listener , 'handle' ] , $ arguments ) ; } }
Invoke the listeners for an event.

@param string         $name
@param EventInterface $event
@param array          $arguments

@return void
Invoke the listeners for an event .