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: * HttpKernelInterface handles a Request to convert it to a Response. Chris@0: * Chris@0: * @author Fabien Potencier Chris@0: */ Chris@0: interface HttpKernelInterface Chris@0: { Chris@0: const MASTER_REQUEST = 1; Chris@0: const SUB_REQUEST = 2; Chris@0: Chris@0: /** Chris@0: * Handles a Request to convert it to a Response. Chris@0: * Chris@0: * When $catch is true, the implementation must catch all exceptions Chris@0: * and do its best to convert them to a Response instance. Chris@0: * Chris@0: * @param Request $request A Request instance Chris@0: * @param int $type The type of the request Chris@0: * (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) Chris@0: * @param bool $catch Whether to catch exceptions or not Chris@0: * Chris@0: * @return Response A Response instance Chris@0: * Chris@0: * @throws \Exception When an Exception occurs during processing Chris@0: */ Chris@0: public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true); Chris@0: }