Yaffs site version 1.1
[yaffs-website] / vendor / symfony / http-kernel / TerminableInterface.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\HttpKernel;
13
14 use Symfony\Component\HttpFoundation\Request;
15 use Symfony\Component\HttpFoundation\Response;
16
17 /**
18  * Terminable extends the Kernel request/response cycle with dispatching a post
19  * response event after sending the response and before shutting down the kernel.
20  *
21  * @author Jordi Boggiano <j.boggiano@seld.be>
22  * @author Pierre Minnieur <pierre.minnieur@sensiolabs.de>
23  */
24 interface TerminableInterface
25 {
26     /**
27      * Terminates a request/response cycle.
28      *
29      * Should be called after sending the response and before shutting down the kernel.
30      *
31      * @param Request  $request  A Request instance
32      * @param Response $response A Response instance
33      */
34     public function terminate(Request $request, Response $response);
35 }