public function removeSubscriber(SubscriberInterface $subscriber)
    {
        if (is_array($subscriber->getSubscriberEvents())) {
            foreach ($subscriber->getSubscriberEvents() as $subscriberEvent => $params) {
                $this->removeListener($subscriberEvent, array($subscriber, $params));
            }
        }
    }
public function removeSubscriber(SubscriberInterface $subscriber)
    {
        if (is_array($subscriber->getSubscriberEvents())) {
            foreach ($subscriber->getSubscriberEvents() as $subscriberEvent => $params) {
                $this->removeListener($subscriberEvent, array($subscriber, $params));
            }
        }
    }
public function removeSubscriber ( SubscriberInterface $ subscriber ) { if ( is_array ( $ subscriber -> getSubscriberEvents ( ) ) ) { foreach ( $ subscriber -> getSubscriberEvents ( ) as $ subscriberEvent => $ params ) { $ this -> removeListener ( $ subscriberEvent , array ( $ subscriber , $ params ) ) ; } } }
Remove all subscriber from event configuration

@param SubscriberInterface $subscriber

@return mixed|void
Remove all subscriber from event configuration