public function registerListeners(array $listeners)
    {
        foreach ($listeners as $event => $listener) {
            $this->events[$event][] = $listener;
        }
    }
public function registerListeners(array $listeners)
    {
        foreach ($listeners as $event => $listener) {
            $this->events[$event][] = $listener;
        }
    }
public function registerListeners ( array $ listeners ) { foreach ( $ listeners as $ event => $ listener ) { $ this -> events [ $ event ] [ ] = $ listener ; } }
Register local event listeners.

@param array $listeners
Register local event listeners .