function Kernel::handle
Overrides HttpKernelInterface::handle
File
-
vendor/
symfony/ http-kernel/ Kernel.php, line 167
Class
- Kernel
- The Kernel is the heart of the Symfony system.
Namespace
Symfony\Component\HttpKernelCode
public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) : Response {
if (!$this->booted) {
$container = $this->container ?? $this->preBoot();
if ($container->has('http_cache')) {
return $container->get('http_cache')
->handle($request, $type, $catch);
}
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()
->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}