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