src/Jmikola/WildcardEventDispatcher/ListenerPattern.php
public function unbind(EventDispatcherInterface $dispatcher)
    {
        foreach ($this->events as $eventName => $_) {
            $dispatcher->removeListener($eventName, $this->getListener());
        }

        $this->events = array();
    }
public function unbind(EventDispatcherInterface $dispatcher)
    {
        foreach ($this->events as $eventName => $_) {
            $dispatcher->removeListener($eventName, $this->getListener());
        }

        $this->events = array();
    }
public function unbind ( EventDispatcherInterface $ dispatcher ) { foreach ( $ this -> events as $ eventName => $ _ ) { $ dispatcher -> removeListener ( $ eventName , $ this -> getListener ( ) ) ; } $ this -> events = array ( ) ; }
Removes this pattern's listener from all events to which it was
previously added.

@param EventDispatcherInterface $dispatcher
Removes this pattern s listener from all events to which it was previously added .