src/Event/Dispatcher.php
public function dispatch($data) 
    {

        $event = new \Moxy\Event($this->_name, $data);

        foreach($this->_listeners as $listener) {
            $listener->call($event);
        }

    }
public function dispatch($data) 
    {

        $event = new \Moxy\Event($this->_name, $data);

        foreach($this->_listeners as $listener) {
            $listener->call($event);
        }

    }
public function dispatch ( $ data ) { $ event = new \ Moxy \ Event ( $ this -> _name , $ data ) ; foreach ( $ this -> _listeners as $ listener ) { $ listener -> call ( $ event ) ; } }
Dispatch an Event

Iterates the list of Event Listeners
and calls each of them sequentially

@author Tom Morton
@param array $data An array of Data
Dispatch an Event