You are here

public function ImmutableEventDispatcher::removeSubscriber in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php \Symfony\Component\EventDispatcher\ImmutableEventDispatcher::removeSubscriber()

Removes an event subscriber.

Parameters

EventSubscriberInterface $subscriber The subscriber:

Overrides EventDispatcherInterface::removeSubscriber

File

vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php, line 73

Class

ImmutableEventDispatcher
A read-only proxy for an event dispatcher.

Namespace

Symfony\Component\EventDispatcher

Code

public function removeSubscriber(EventSubscriberInterface $subscriber) {
  throw new \BadMethodCallException('Unmodifiable event dispatchers must not be modified.');
}