You are here

public function ImmutableEventDispatcher::removeListener in Zircon Profile 8

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

Removes an event listener from the specified events.

Parameters

string $eventName The event to remove a listener from:

callable $listener The listener to remove:

Overrides EventDispatcherInterface::removeListener

File

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

Class

ImmutableEventDispatcher
A read-only proxy for an event dispatcher.

Namespace

Symfony\Component\EventDispatcher

Code

public function removeListener($eventName, $listener) {
  throw new \BadMethodCallException('Unmodifiable event dispatchers must not be modified.');
}