Triggers the listeners of an event.
This method can be overridden to add functionality that is executed for each listener.
array[callback] $listeners The event listeners.:
string $eventName The name of the event to dispatch.:
Event $event The event object to pass to the event handlers/listeners.:
protected function doDispatch($listeners, $eventName, Event $event) {
foreach ($listeners as $listener) {
call_user_func($listener, $event);
if ($event
->isPropagationStopped()) {
break;
}
}
}