You are here

public function ImmutableEventDispatcher::__construct in Zircon Profile 8

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

Creates an unmodifiable proxy for an event dispatcher.

Parameters

EventDispatcherInterface $dispatcher The proxied event dispatcher.:

File

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

Class

ImmutableEventDispatcher
A read-only proxy for an event dispatcher.

Namespace

Symfony\Component\EventDispatcher

Code

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