src/Jmikola/WildcardEventDispatcher/WildcardEventDispatcher.php
protected function bindPatterns($eventName)
    {
        if (isset($this->syncedEvents[$eventName])) {
            return;
        }

        foreach ($this->patterns as $eventPattern => $patterns) {
            foreach ($patterns as $pattern) {
                if ($pattern->test($eventName)) {
                    $pattern->bind($this->dispatcher, $eventName);
                }
            }
        }

        $this->syncedEvents[$eventName] = true;
    }
protected function bindPatterns($eventName)
    {
        if (isset($this->syncedEvents[$eventName])) {
            return;
        }

        foreach ($this->patterns as $eventPattern => $patterns) {
            foreach ($patterns as $pattern) {
                if ($pattern->test($eventName)) {
                    $pattern->bind($this->dispatcher, $eventName);
                }
            }
        }

        $this->syncedEvents[$eventName] = true;
    }
protected function bindPatterns ( $ eventName ) { if ( isset ( $ this -> syncedEvents [ $ eventName ] ) ) { return ; } foreach ( $ this -> patterns as $ eventPattern => $ patterns ) { foreach ( $ patterns as $ pattern ) { if ( $ pattern -> test ( $ eventName ) ) { $ pattern -> bind ( $ this -> dispatcher , $ eventName ) ; } } } $ this -> syncedEvents [ $ eventName ] = true ; }
Binds all patterns that match the specified event name.

@param string $eventName
Binds all patterns that match the specified event name .