Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (42 sloc) 1.346 kb
2c7194e @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
0e17781 @fabpot replaced symfony-project.org by symfony.com
fabpot authored
6 * (c) Fabien Potencier <fabien@symfony.com>
2c7194e @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
ab4b70e @blue-eyes normalized license messages in PHP files
blue-eyes authored
12 namespace Symfony\Component\HttpKernel;
13
14 use Symfony\Component\HttpFoundation\Request;
f30900d @fabpot [HttpKernel] made some minor tweaks
fabpot authored
15 use Symfony\Component\HttpFoundation\Response;
ab4b70e @blue-eyes normalized license messages in PHP files
blue-eyes authored
16
2c7194e @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored
17 /**
b82b373 @fabpot [HttpKernel] tweaked HttpKernelInterface
fabpot authored
18 * HttpKernelInterface handles a Request to convert it to a Response.
2c7194e @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored
19 *
0e17781 @fabpot replaced symfony-project.org by symfony.com
fabpot authored
20 * @author Fabien Potencier <fabien@symfony.com>
ac27df3 @fabpot [HttpKernel] tagged public @api
fabpot authored
21 *
22 * @api
2c7194e @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored
23 */
24 interface HttpKernelInterface
25 {
26 const MASTER_REQUEST = 1;
27 const SUB_REQUEST = 2;
28
29 /**
b82b373 @fabpot [HttpKernel] tweaked HttpKernelInterface
fabpot authored
30 * Handles a Request to convert it to a Response.
31 *
32 * When $catch is true, the implementation must catch all exceptions
33 * and do its best to convert them to a Response instance.
2c7194e @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored
34 *
57d64d1 @fabpot fixed phpdoc @param alignment
fabpot authored
35 * @param Request $request A Request instance
2ddb853 @fabpot made phpdoc types consistent with those defined in Hack
fabpot authored
36 * @param int $type The type of the request
8a57ab8 @GrahamCampbell Docblock fixes
GrahamCampbell authored
37 * (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
38 * @param bool $catch Whether to catch exceptions or not
2c7194e @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored
39 *
b82b373 @fabpot [HttpKernel] tweaked HttpKernelInterface
fabpot authored
40 * @return Response A Response instance
2c7194e @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored
41 *
b82b373 @fabpot [HttpKernel] tweaked HttpKernelInterface
fabpot authored
42 * @throws \Exception When an Exception occurs during processing
ac27df3 @fabpot [HttpKernel] tagged public @api
fabpot authored
43 *
44 * @api
2c7194e @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored
45 */
3ed400b @fabpot fixed CS
fabpot authored
46 public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true);
2c7194e @fabpot renamed Symfony\Components to Symfony\Component
fabpot authored
47 }
Something went wrong with that request. Please try again.