/** * Check if the handler is connected to a dispatcher * * @param EventSubscriberInterface $subscriber The event subscriber * @return boolean TRUE if the handler is already connected to the dispatcher. FALSE otherwise. */ public function isSubscribed(EventSubscriberInterface $subscriber) { $handle = $subscriber->getHandle(); return isset($this->_subscribers[$handle]); }