function KernelPreHandle::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php \Drupal\Core\StackMiddleware\KernelPreHandle::__construct()
  2. 8.9.x core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php \Drupal\Core\StackMiddleware\KernelPreHandle::__construct()
  3. 11.x core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php \Drupal\Core\StackMiddleware\KernelPreHandle::__construct()

Constructs a new KernelPreHandle instance.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The wrapped HTTP kernel.

\Drupal\Core\DrupalKernelInterface $drupal_kernel: The main Drupal kernel.

File

core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php, line 37

Class

KernelPreHandle
Prepares the environment after page caching ran.

Namespace

Drupal\Core\StackMiddleware

Code

public function __construct(HttpKernelInterface $http_kernel, DrupalKernelInterface $drupal_kernel) {
    $this->httpKernel = $http_kernel;
    $this->drupalKernel = $drupal_kernel;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.