interface TerminableInterface

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

@author Jordi Boggiano <j.boggiano@seld.be> @author Pierre Minnieur <pierre.minnieur@sensiolabs.de>

@api

Hierarchy

Expanded class hierarchy of TerminableInterface

All classes that implement TerminableInterface

2 files declare their use of TerminableInterface
Client.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Client.php
HttpCache.php in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php

File

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

Namespace

Symfony\Component\HttpKernel
View source
interface TerminableInterface {

  /**
   * Terminates a request/response cycle.
   *
   * Should be called after sending the response and before shutting down the kernel.
   *
   * @param Request  $request  A Request instance
   * @param Response $response A Response instance
   *
   * @api
   */
  public function terminate(Request $request, Response $response);

}

Members

Namesort descending Modifiers Type Description Overrides
TerminableInterface::terminate public function Terminates a request/response cycle. 3