public function publish(\Caridea\Event\Event $event)
    {
        foreach (iterator_to_array($this->listeners) as $listener) {
            $listener->notify($event);
        }
    }
public function publish(\Caridea\Event\Event $event)
    {
        foreach (iterator_to_array($this->listeners) as $listener) {
            $listener->notify($event);
        }
    }
public function publish ( \ Caridea \ Event \ Event $ event ) { foreach ( iterator_to_array ( $ this -> listeners ) as $ listener ) { $ listener -> notify ( $ event ) ; } }
Queues an event to be sent to Listeners.

@param \Caridea\Event\Event $event The event to publish
Queues an event to be sent to Listeners .