You are here

public function EventManager::removeEventSubscriber in Plug 7

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.:

Return value

void

File

lib/doctrine/common/lib/Doctrine/Common/EventManager.php, line 150

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);
}