src/Event/Manager.php
public function getHandlers($name = null)
    {
        $result = is_null($name) ? $this->handlers : $this->handlers[$name];

        return $result;
    }
public function getHandlers($name = null)
    {
        $result = is_null($name) ? $this->handlers : $this->handlers[$name];

        return $result;
    }
public function getHandlers ( $ name = null ) { $ result = is_null ( $ name ) ? $ this -> handlers : $ this -> handlers [ $ name ] ; return $ result ; }
Returns handlers for passed event or all.

@param  string $name  Event name
@return array
Returns handlers for passed event or all .