public function ImmutableEventDispatcher::__construct

Creates an unmodifiable proxy for an event dispatcher.

Parameters

EventDispatcherInterface $dispatcher The proxied event dispatcher.:

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php, line 32

Class

ImmutableEventDispatcher
A read-only proxy for an event dispatcher.

Namespace

Symfony\Component\EventDispatcher

Code

public function __construct(EventDispatcherInterface $dispatcher) {
  $this->dispatcher = $dispatcher;
}