public function queueEvent($event)
    {
        $this->queue->enqueue($event);

        $class = get_class($event);
        foreach ($this->synchronousEventMap->getListenersForEvent($class) as $listener)
        {
            $this->invokeListener($listener, $event);
        }
    }
public function queueEvent($event)
    {
        $this->queue->enqueue($event);

        $class = get_class($event);
        foreach ($this->synchronousEventMap->getListenersForEvent($class) as $listener)
        {
            $this->invokeListener($listener, $event);
        }
    }
public function queueEvent ( $ event ) { $ this -> queue -> enqueue ( $ event ) ; $ class = get_class ( $ event ) ; foreach ( $ this -> synchronousEventMap -> getListenersForEvent ( $ class ) as $ listener ) { $ this -> invokeListener ( $ listener , $ event ) ; } }
Enqueues an arbitrary event.

@param mixed $event The event object to publish.
@return void
Enqueues an arbitrary event .