public function Kernel::terminate

@api

Overrides TerminableInterface::terminate

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php, line 148

Class

Kernel
The Kernel is the heart of the Symfony system.

Namespace

Symfony\Component\HttpKernel

Code

public function terminate(Request $request, Response $response) {
  if (false === $this->booted) {
    return;
  }
  if ($this
    ->getHttpKernel() instanceof TerminableInterface) {
    $this
      ->getHttpKernel()
      ->terminate($request, $response);
  }
}