function KernelEvent::__construct
Parameters
int $requestType The request type the kernel is currently processing; one of: HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST
File
-
core/
lib/ Drupal/ Core/ Http/ KernelEvent.php, line 30
Class
- KernelEvent
- Symfony 6 bridge.
Namespace
Drupal\Core\HttpCode
public function __construct(HttpKernelInterface $kernel, Request $request, ?int $requestType) {
$this->kernel = $kernel;
$this->request = $request;
$this->requestType = $requestType;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.