protected function addInterfaceListeners($eventName, array $listeners = [])
    {
        foreach (class_implements($eventName) as $interface) {
            if (isset($this->listeners[$interface])) {
                foreach ($this->listeners[$interface] as $names) {
                    $listeners = array_merge($listeners, (array) $names);
                }
            }
        }

        return $listeners;
    }
protected function addInterfaceListeners($eventName, array $listeners = [])
    {
        foreach (class_implements($eventName) as $interface) {
            if (isset($this->listeners[$interface])) {
                foreach ($this->listeners[$interface] as $names) {
                    $listeners = array_merge($listeners, (array) $names);
                }
            }
        }

        return $listeners;
    }
protected function addInterfaceListeners ( $ eventName , array $ listeners = [ ] ) { foreach ( class_implements ( $ eventName ) as $ interface ) { if ( isset ( $ this -> listeners [ $ interface ] ) ) { foreach ( $ this -> listeners [ $ interface ] as $ names ) { $ listeners = array_merge ( $ listeners , ( array ) $ names ) ; } } } return $ listeners ; }
Add the listeners for the event's interfaces to the given array.

@param  string  $eventName
@param  array  $listeners
@return array
Add the listeners for the event s interfaces to the given array .