private function getListenersForEvent($event) {
        $listeners = [];

        foreach ($this->getEventNameParts($event) as $name) {
            if (isset($this->callbacks[$name])) {
                foreach (clone $this->callbacks[$name] as $listener) {
                    $listeners[] = $listener;
                }
            }
        }

        return $listeners;
    }
private function getListenersForEvent($event) {
        $listeners = [];

        foreach ($this->getEventNameParts($event) as $name) {
            if (isset($this->callbacks[$name])) {
                foreach (clone $this->callbacks[$name] as $listener) {
                    $listeners[] = $listener;
                }
            }
        }

        return $listeners;
    }
private function getListenersForEvent ( $ event ) { $ listeners = [ ] ; foreach ( $ this -> getEventNameParts ( $ event ) as $ name ) { if ( isset ( $ this -> callbacks [ $ name ] ) ) { foreach ( clone $ this -> callbacks [ $ name ] as $ listener ) { $ listeners [ ] = $ listener ; } } } return $ listeners ; }
Get all listeners that listens for an event, including wildcard listeners

@param string $event Name of the event
@return PriorityQueue[]
Get all listeners that listens for an event including wildcard listeners