src/Jmikola/WildcardEventDispatcher/WildcardEventDispatcher.php
protected function removeListenerPattern($eventPattern, $listener)
    {
        if (!isset($this->patterns[$eventPattern])) {
            return;
        }

        foreach ($this->patterns[$eventPattern] as $key => $pattern) {
            if ($listener == $pattern->getListener()) {
                $pattern->unbind($this->dispatcher);
                unset($this->patterns[$eventPattern][$key]);
            }
        }
    }
protected function removeListenerPattern($eventPattern, $listener)
    {
        if (!isset($this->patterns[$eventPattern])) {
            return;
        }

        foreach ($this->patterns[$eventPattern] as $key => $pattern) {
            if ($listener == $pattern->getListener()) {
                $pattern->unbind($this->dispatcher);
                unset($this->patterns[$eventPattern][$key]);
            }
        }
    }
protected function removeListenerPattern ( $ eventPattern , $ listener ) { if ( ! isset ( $ this -> patterns [ $ eventPattern ] ) ) { return ; } foreach ( $ this -> patterns [ $ eventPattern ] as $ key => $ pattern ) { if ( $ listener == $ pattern -> getListener ( ) ) { $ pattern -> unbind ( $ this -> dispatcher ) ; unset ( $ this -> patterns [ $ eventPattern ] [ $ key ] ) ; } } }
Removes an event listener from any events to which it was applied due to
pattern matching.

This method cannot be used to remove a listener from a pattern that was
never registered.

@param string   $eventPattern
@param callback $listener
Removes an event listener from any events to which it was applied due to pattern matching .