public function HttpKernel::__construct

Same name in this branch

Constructor

@api

Parameters

EventDispatcherInterface $dispatcher An EventDispatcherInterface instance:

ControllerResolverInterface $resolver A ControllerResolverInterface instance:

Overrides HttpKernel::__construct

File

drupal/core/lib/Drupal/Core/HttpKernel.php, line 37
Definition of Drupal\Core\HttpKernel.

Class

HttpKernel
This HttpKernel is used to manage scope changes of the DI container.

Namespace

Drupal\Core

Code

public function __construct(EventDispatcherInterface $dispatcher, ContainerInterface $container, ControllerResolverInterface $controllerResolver) {
  parent::__construct($dispatcher, $controllerResolver);
  $this->container = $container;
}