You are here

public function Event::getDispatcher in Zircon Profile 8.0

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

Returns the EventDispatcher that dispatches this Event.

Return value

EventDispatcherInterface

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 88

Class

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

Namespace

Symfony\Component\EventDispatcher

Code

public function getDispatcher() {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.4 and will be removed in 3.0. The event dispatcher instance can be received in the listener call instead.', E_USER_DEPRECATED);
  return $this->dispatcher;
}