public function getListeners($event)
    {
        $parentListeners = [];
        $wildcards = [];

        if( is_object($event) )
        {
            $eventName = get_class($event);
            $parentListeners = $this->getParentListeners($event);
        }
        else
        {
            $eventName = $event;
            $wildcards = $this->getWildcardListeners($event);
        }

        if (!isset($this->sorted[$eventName])) {
            $this->sortListeners($eventName);
        }

        return array_merge($this->sorted[$eventName], $wildcards, $parentListeners);
    }
public function getListeners($event)
    {
        $parentListeners = [];
        $wildcards = [];

        if( is_object($event) )
        {
            $eventName = get_class($event);
            $parentListeners = $this->getParentListeners($event);
        }
        else
        {
            $eventName = $event;
            $wildcards = $this->getWildcardListeners($event);
        }

        if (!isset($this->sorted[$eventName])) {
            $this->sortListeners($eventName);
        }

        return array_merge($this->sorted[$eventName], $wildcards, $parentListeners);
    }
public function getListeners ( $ event ) { $ parentListeners = [ ] ; $ wildcards = [ ] ; if ( is_object ( $ event ) ) { $ eventName = get_class ( $ event ) ; $ parentListeners = $ this -> getParentListeners ( $ event ) ; } else { $ eventName = $ event ; $ wildcards = $ this -> getWildcardListeners ( $ event ) ; } if ( ! isset ( $ this -> sorted [ $ eventName ] ) ) { $ this -> sortListeners ( $ eventName ) ; } return array_merge ( $ this -> sorted [ $ eventName ] , $ wildcards , $ parentListeners ) ; }
Get all of the listeners for a given event.

@param  mixed  $event
@return array
Get all of the listeners for a given event .