You are here

public function Kernel::terminate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Kernel.php \Symfony\Component\HttpKernel\Kernel::terminate()

Terminates a request/response cycle.

Should be called after sending the response and before shutting down the kernel.

Parameters

Request $request A Request instance:

Response $response A Response instance:

Overrides TerminableInterface::terminate

File

vendor/symfony/http-kernel/Kernel.php, line 145

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);
  }
}