public function getListeners($name)
    {
        $listenerMatched = false;

        /**
         * Do we have an exact match?
         */
        if (isset($this->queues[$name])) {
            $listenerMatched = true;
        }

        /**
         * Optionally search for wildcard matches.
         */
        if ($this->wildcardSearching) {
            if ($this->populateQueueFromWildSearch($name)) {
                $listenerMatched = true;
            }
        }

        $listeners = [];
        if ($listenerMatched) {
            foreach ($this->queues[$name] as $key) {
                $listeners[] = $this->callbacks[$key];
            }
        }

        return $listeners;
    }
public function getListeners($name)
    {
        $listenerMatched = false;

        /**
         * Do we have an exact match?
         */
        if (isset($this->queues[$name])) {
            $listenerMatched = true;
        }

        /**
         * Optionally search for wildcard matches.
         */
        if ($this->wildcardSearching) {
            if ($this->populateQueueFromWildSearch($name)) {
                $listenerMatched = true;
            }
        }

        $listeners = [];
        if ($listenerMatched) {
            foreach ($this->queues[$name] as $key) {
                $listeners[] = $this->callbacks[$key];
            }
        }

        return $listeners;
    }
public function getListeners ( $ name ) { $ listenerMatched = false ; /**
         * Do we have an exact match?
         */ if ( isset ( $ this -> queues [ $ name ] ) ) { $ listenerMatched = true ; } /**
         * Optionally search for wildcard matches.
         */ if ( $ this -> wildcardSearching ) { if ( $ this -> populateQueueFromWildSearch ( $ name ) ) { $ listenerMatched = true ; } } $ listeners = [ ] ; if ( $ listenerMatched ) { foreach ( $ this -> queues [ $ name ] as $ key ) { $ listeners [ ] = $ this -> callbacks [ $ key ] ; } } return $ listeners ; }
Retrieve listeners by name

@param string $name
@return array $listeners
Retrieve listeners by name