protected function triggerHandlers(EventInterface $event)
    {
        foreach ($this->getHandlers($event->getName()) as $handler) {
            call_user_func($handler, $event);
            if ($event->isPropagationStopped()) {
                break;
            }
        }
    }
protected function triggerHandlers(EventInterface $event)
    {
        foreach ($this->getHandlers($event->getName()) as $handler) {
            call_user_func($handler, $event);
            if ($event->isPropagationStopped()) {
                break;
            }
        }
    }
protected function triggerHandlers ( EventInterface $ event ) { foreach ( $ this -> getHandlers ( $ event -> getName ( ) ) as $ handler ) { call_user_func ( $ handler , $ event ) ; if ( $ event -> isPropagationStopped ( ) ) { break ; } } }
Trigger handlers of an event.
@param \Gamegos\Events\EventInterface $event
Trigger handlers of an event .