src/EventDispatcher/SniffDispatcher.php
protected function doDispatch($listeners, $eventName, Event $event)
    {
        foreach ($listeners as $listener) {
            if ($event->isPropagationStopped()) {
                break;
            }

            $this->currentListenerSniffCodeProvider->setCurrentListener($listener);
            call_user_func($listener, $event, $eventName, $this);
        }
    }
protected function doDispatch($listeners, $eventName, Event $event)
    {
        foreach ($listeners as $listener) {
            if ($event->isPropagationStopped()) {
                break;
            }

            $this->currentListenerSniffCodeProvider->setCurrentListener($listener);
            call_user_func($listener, $event, $eventName, $this);
        }
    }
{@inheritdoc}