Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\HttpKernel; Chris@0: Chris@0: use Symfony\Component\HttpFoundation\Request; Chris@0: use Symfony\Component\HttpFoundation\Response; Chris@0: Chris@0: /** Chris@0: * Terminable extends the Kernel request/response cycle with dispatching a post Chris@0: * response event after sending the response and before shutting down the kernel. Chris@0: * Chris@0: * @author Jordi Boggiano Chris@0: * @author Pierre Minnieur Chris@0: */ Chris@0: interface TerminableInterface Chris@0: { Chris@0: /** Chris@0: * Terminates a request/response cycle. Chris@0: * Chris@0: * Should be called after sending the response and before shutting down the kernel. Chris@0: */ Chris@0: public function terminate(Request $request, Response $response); Chris@0: }