Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Kernel.php

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\HttpKernel

Code

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;
    }
}
RSS feed
Powered by Drupal