public function TerminableInterface::terminate

Terminates a request/response cycle.

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

@api

Parameters

Request $request A Request instance:

Response $response A Response instance:

3 methods override TerminableInterface::terminate()
HttpCache::terminate in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
@api
HttpKernel::terminate in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
@api
Kernel::terminate in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php
@api

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/TerminableInterface.php, line 38

Class

TerminableInterface
Terminable extends the Kernel request/response cycle with dispatching a post response event after sending the response and before shutting down the kernel.

Namespace

Symfony\Component\HttpKernel

Code

public function terminate(Request $request, Response $response);