Library/EventsManager.php
public function dispatch($event, array $param = [])
    {
        foreach ($this->listeners[$event] as $listener) {
            \call_user_func_array($listener, $param);
        }
    }
public function dispatch($event, array $param = [])
    {
        foreach ($this->listeners[$event] as $listener) {
            \call_user_func_array($listener, $param);
        }
    }
public function dispatch ( $ event , array $ param = [ ] ) { foreach ( $ this -> listeners [ $ event ] as $ listener ) { \ call_user_func_array ( $ listener , $ param ) ; } }
Triggers an event for the specified event type.

@param $event
@param array $param
Triggers an event for the specified event type .