public function ContainerAwareEventDispatcher::__construct

Constructor.

Parameters

ContainerInterface $container A ContainerInterface instance:

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