src/Jmikola/WildcardEventDispatcher/ListenerPattern.php
public function bind(EventDispatcherInterface $dispatcher, $eventName)
    {
        if (isset($this->events[$eventName])) {
            return;
        }

        $dispatcher->addListener($eventName, $this->getListener(), $this->priority);
        $this->events[$eventName] = true;
    }
public function bind(EventDispatcherInterface $dispatcher, $eventName)
    {
        if (isset($this->events[$eventName])) {
            return;
        }

        $dispatcher->addListener($eventName, $this->getListener(), $this->priority);
        $this->events[$eventName] = true;
    }
public function bind ( EventDispatcherInterface $ dispatcher , $ eventName ) { if ( isset ( $ this -> events [ $ eventName ] ) ) { return ; } $ dispatcher -> addListener ( $ eventName , $ this -> getListener ( ) , $ this -> priority ) ; $ this -> events [ $ eventName ] = true ; }
Adds this pattern's listener to an event.

@param EventDispatcherInterface $dispatcher
@param string                   $eventName
Adds this pattern s listener to an event .