Removes an EventSubscriber. The subscriber is asked for all the events it is interested in and removed as a listener for these events.
\Doctrine\Common\EventSubscriber $subscriber The subscriber.:
public function removeEventSubscriber(EventSubscriber $subscriber) {
$this
->removeEventListener($subscriber
->getSubscribedEvents(), $subscriber);
}