public function EventManager::removeEventSubscriber

Removes an EventSubscriber. The subscriber is asked for all the events it is interested in and removed as a listener for these events.

Parameters

\Doctrine\Common\EventSubscriber $subscriber The subscriber.:

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/EventManager.php, line 143

Class

EventManager
The EventManager is the central point of Doctrine's event listener system. Listeners are registered on the manager and events are dispatched through the manager.

Namespace

Doctrine\Common

Code

public function removeEventSubscriber(EventSubscriber $subscriber) {
  $this
    ->removeEventListener($subscriber
    ->getSubscribedEvents(), $subscriber);
}