public function ContainerAwareEventDispatcher::dispatch

Lazily loads listeners for this event from the dependency injection container.

Throws

\InvalidArgumentException if the service is not defined

Overrides EventDispatcher::dispatch

1 call to ContainerAwareEventDispatcher::dispatch()
ContainerAwareTraceableEventDispatcher::dispatch in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php
Lazily loads listeners for this event from the dependency injection container.
1 method overrides ContainerAwareEventDispatcher::dispatch()
ContainerAwareTraceableEventDispatcher::dispatch in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php
Lazily loads listeners for this event from the dependency injection container.

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php, line 161

Class

ContainerAwareEventDispatcher
Lazily loads listeners and subscribers from the dependency injection container

Namespace

Symfony\Component\EventDispatcher

Code

public function dispatch($eventName, Event $event = null) {
  $this
    ->lazyLoad($eventName);
  return parent::dispatch($eventName, $event);
}