class KernelPreHandle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php \Drupal\Core\StackMiddleware\KernelPreHandle
Prepares the environment after page caching ran.
Hierarchy
- class \Drupal\Core\StackMiddleware\KernelPreHandle implements HttpKernelInterface
Expanded class hierarchy of KernelPreHandle
1 string reference to 'KernelPreHandle'
- core.services.yml in core/
core.services.yml - core/core.services.yml
1 service uses KernelPreHandle
File
- core/
lib/ Drupal/ Core/ StackMiddleware/ KernelPreHandle.php, line 17 - Contains \Drupal\Core\StackMiddleware\KernelPreHandle.
Namespace
Drupal\Core\StackMiddlewareView source
class KernelPreHandle implements HttpKernelInterface {
/**
* The wrapped HTTP kernel.
*
* @var \Symfony\Component\HttpKernel\HttpKernelInterface
*/
protected $httpKernel;
/**
* The main Drupal kernel.
*
* @var \Drupal\Core\DrupalKernelInterface
*/
protected $drupalKernel;
/**
* Constructs a new KernelPreHandle instance.
*
* @param \Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel
* The wrapped HTTP kernel.
*
* @param \Drupal\Core\DrupalKernelInterface $drupal_kernel
* The main Drupal kernel.
*/
public function __construct(HttpKernelInterface $http_kernel, DrupalKernelInterface $drupal_kernel) {
$this->httpKernel = $http_kernel;
$this->drupalKernel = $drupal_kernel;
}
/**
* {@inheritdoc}
*/
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {
$this->drupalKernel
->preHandle($request);
return $this->httpKernel
->handle($request, $type, $catch);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpKernelInterface:: |
constant | |||
HttpKernelInterface:: |
constant | |||
KernelPreHandle:: |
protected | property | The main Drupal kernel. | |
KernelPreHandle:: |
protected | property | The wrapped HTTP kernel. | |
KernelPreHandle:: |
public | function |
Handles a Request to convert it to a Response. Overrides HttpKernelInterface:: |
|
KernelPreHandle:: |
public | function | Constructs a new KernelPreHandle instance. |