protected function EventDispatcher::doDispatch in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/EventDispatcher.php \Symfony\Component\EventDispatcher\EventDispatcher::doDispatch()
Triggers the listeners of an event.
This method can be overridden to add functionality that is executed for each listener.
Parameters
callable[] $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.:
1 call to EventDispatcher::doDispatch()
- EventDispatcher::dispatch in vendor/
symfony/ event-dispatcher/ EventDispatcher.php - Dispatches an event to all registered listeners.
File
- vendor/
symfony/ event-dispatcher/ EventDispatcher.php, line 155
Class
- EventDispatcher
- The EventDispatcherInterface is the central point of Symfony's event listener system.
Namespace
Symfony\Component\EventDispatcherCode
protected function doDispatch($listeners, $eventName, Event $event) {
foreach ($listeners as $listener) {
call_user_func($listener, $event, $eventName, $this);
if ($event
->isPropagationStopped()) {
break;
}
}
}