public function HttpKernel::__construct

Same name in this branch
  1. 9.x drupal/core/lib/Drupal/Core/HttpKernel.php \Drupal\Core\HttpKernel::__construct()
  2. 9.x drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php \Symfony\Component\HttpKernel\HttpKernel::__construct()

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