Symfony\Component\EventDispatcher\EventDispatcher::doDispatch PHP Method

doDispatch() protected method

This method can be overridden to add functionality that is executed for each listener.
protected doDispatch ( array[callback] $listeners, string $eventName, Symfony\Component\EventDispatcher\Event $event )
$listeners array[callback]
$eventName string The name of the event to dispatch.
$event Symfony\Component\EventDispatcher\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;
            }
        }
    }