You are here

public function Event::setDispatcher in Zircon Profile 8

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

Stores the EventDispatcher that dispatches this Event.

Parameters

EventDispatcherInterface $dispatcher:

Deprecated

since version 2.4, to be removed in 3.0. The event dispatcher is passed to the listener call.

File

vendor/symfony/event-dispatcher/Event.php, line 76

Class

Event
Event is the base class for classes containing event data.

Namespace

Symfony\Component\EventDispatcher

Code

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