src/Bus/ListenerLocatedEventBus.php
public function publish(Event $event)
    {
        foreach ($this->locator->listenersOfEvent($event) as $listener) {
            call_user_func($listener, $event);
        }
    }
public function publish(Event $event)
    {
        foreach ($this->locator->listenersOfEvent($event) as $listener) {
            call_user_func($listener, $event);
        }
    }
public function publish ( Event $ event ) { foreach ( $ this -> locator -> listenersOfEvent ( $ event ) as $ listener ) { call_user_func ( $ listener , $ event ) ; } }
Publishes the event to every listener that wants to.

@param Event $event
Publishes the event to every listener that wants to .