You are here

public function ContainerAwareEventDispatcher::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php \Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::__construct()
  2. 8 core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php \Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php \Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::__construct()

Constructor.

Parameters

ContainerInterface $container A ContainerInterface instance:

File

vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php, line 52

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;
}