Fix bug in style changes for the Use cases on the live site.
[yaffs-website] / vendor / symfony / psr-http-message-bridge / HttpMessageFactoryInterface.php
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 PSR HTTP Request and Response instances from Symfony ones.
21  *
22  * @author Kévin Dunglas <dunglas@gmail.com>
23  */
24 interface HttpMessageFactoryInterface
25 {
26     /**
27      * Creates a PSR-7 Request instance from a Symfony one.
28      *
29      * @param Request $symfonyRequest
30      *
31      * @return ServerRequestInterface
32      */
33     public function createRequest(Request $symfonyRequest);
34
35     /**
36      * Creates a PSR-7 Response instance from a Symfony one.
37      *
38      * @param Response $symfonyResponse
39      *
40      * @return ResponseInterface
41      */
42     public function createResponse(Response $symfonyResponse);
43 }