View.php
public function setListeners(array $listeners)
    {
        $this->listeners = [];

        foreach ($listeners as $name => $listener) {
            $this->addListener($name, $listener);
        }
    }
public function setListeners(array $listeners)
    {
        $this->listeners = [];

        foreach ($listeners as $name => $listener) {
            $this->addListener($name, $listener);
        }
    }
public function setListeners ( array $ listeners ) { $ this -> listeners = [ ] ; foreach ( $ listeners as $ name => $ listener ) { $ this -> addListener ( $ name , $ listener ) ; } }
Set render listeners.

@param array $listeners

@return void
Set render listeners .