Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RequestHandler] added the RequestHandlerInterface
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/Symfony/Components/RequestHandler/RequestHandlerInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace Symfony\Components\RequestHandler; | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com> | ||
* | ||
* 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 <fabien.potencier@symfony-project.com> | ||
*/ | ||
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); | ||
} |