From 52acc423d0a90f9c23b2c1ef2b806cefec733016 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 24 Apr 2010 15:48:49 +0200 Subject: [PATCH] [RequestHandler] added the RequestHandlerInterface --- .../RequestHandlerInterface.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/Symfony/Components/RequestHandler/RequestHandlerInterface.php diff --git a/src/Symfony/Components/RequestHandler/RequestHandlerInterface.php b/src/Symfony/Components/RequestHandler/RequestHandlerInterface.php new file mode 100644 index 0000000000..1200fa3a3a --- /dev/null +++ b/src/Symfony/Components/RequestHandler/RequestHandlerInterface.php @@ -0,0 +1,34 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * RequestHandlerInterface. + * + * @package Symfony + * @subpackage Components_RequestHandler + * @author Fabien Potencier + */ +interface RequestHandlerInterface +{ + /** + * Handles a request to convert it to a response. + * + * @param Request $request A Request instance + * @param Boolean $main Whether this is the main request or not + * + * @return Response $response A Response instance + * + * @throws \Exception When Exception couldn't be caught by event processing + */ + public function handle(Request $request, $main = true); +}