src/PubSub/Manager.php
protected function doPublish($eventName, $subscribers, Event $event)
    {
        foreach ($subscribers as $callable) {
            if ($event->isPropagationStopped()) {
                break;
            }
            \call_user_func($callable, $event, $eventName, $this);
        }
    }
protected function doPublish($eventName, $subscribers, Event $event)
    {
        foreach ($subscribers as $callable) {
            if ($event->isPropagationStopped()) {
                break;
            }
            \call_user_func($callable, $event, $eventName, $this);
        }
    }
Calls the subscribers of an event.

@param string     $eventName   The name of the event to publish
@param callable[] $subscribers The event subscribers
@param Event      $event       The event object to pass to the subscribers

@return void