public function addSubscriber(SubscriberInterface $subscriber)
    {
        foreach ($subscriber->getSubscriberEvents() as $subscriberEvent => $params) {
            if (is_string($params)) {
                $this->addListener($subscriberEvent, array($subscriber, $params));
            }

            if (is_array($params)) {
                foreach ($params as $param) {
                    $this->addListener($subscriberEvent, array($subscriber, $param));
                }
            }
        }
    }
public function addSubscriber(SubscriberInterface $subscriber)
    {
        foreach ($subscriber->getSubscriberEvents() as $subscriberEvent => $params) {
            if (is_string($params)) {
                $this->addListener($subscriberEvent, array($subscriber, $params));
            }

            if (is_array($params)) {
                foreach ($params as $param) {
                    $this->addListener($subscriberEvent, array($subscriber, $param));
                }
            }
        }
    }
public function addSubscriber ( SubscriberInterface $ subscriber ) { foreach ( $ subscriber -> getSubscriberEvents ( ) as $ subscriberEvent => $ params ) { if ( is_string ( $ params ) ) { $ this -> addListener ( $ subscriberEvent , array ( $ subscriber , $ params ) ) ; } if ( is_array ( $ params ) ) { foreach ( $ params as $ param ) { $ this -> addListener ( $ subscriberEvent , array ( $ subscriber , $ param ) ) ; } } } }
Added subscriber from event configuration
This subscriber allow notified for event

@param SubscriberInterface $subscriber

@return mixed|void

@throws \Exception
Added subscriber from event configuration This subscriber allow notified for event