Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/psr-http-message-bridge/HttpFoundationFactoryInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
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\Bridge\PsrHttpMessage; | |
13 | |
14 use Psr\Http\Message\ServerRequestInterface; | |
15 use Psr\Http\Message\ResponseInterface; | |
16 use Symfony\Component\HttpFoundation\Request; | |
17 use Symfony\Component\HttpFoundation\Response; | |
18 | |
19 /** | |
20 * Creates Symfony Request and Response instances from PSR-7 ones. | |
21 * | |
22 * @author Kévin Dunglas <dunglas@gmail.com> | |
23 */ | |
24 interface HttpFoundationFactoryInterface | |
25 { | |
26 /** | |
27 * Creates a Symfony Request instance from a PSR-7 one. | |
28 * | |
29 * @param ServerRequestInterface $psrRequest | |
30 * | |
31 * @return Request | |
32 */ | |
33 public function createRequest(ServerRequestInterface $psrRequest); | |
34 | |
35 /** | |
36 * Creates a Symfony Response instance from a PSR-7 one. | |
37 * | |
38 * @param ResponseInterface $psrResponse | |
39 * | |
40 * @return Response | |
41 */ | |
42 public function createResponse(ResponseInterface $psrResponse); | |
43 } |