public function ContainerAwareEventDispatcher::__construct

Constructor.

Parameters

ContainerInterface $container A ContainerInterface instance:

1 call to ContainerAwareEventDispatcher::__construct()
ContainerAwareTraceableEventDispatcher::__construct in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php
Constructor.
1 method overrides ContainerAwareEventDispatcher::__construct()
ContainerAwareTraceableEventDispatcher::__construct in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php
Constructor.

File

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

Class

ContainerAwareEventDispatcher
Lazily loads listeners and subscribers from the dependency injection container

Namespace

Symfony\Component\EventDispatcher

Code

public function __construct(ContainerInterface $container) {
  $this->container = $container;
}