1 | <?php |
||
12 | class HttpMessageConverter |
||
13 | { |
||
14 | /** |
||
15 | * Convert a Symfony HTTP Request to a Psr7 Response |
||
16 | * |
||
17 | * @param SymfonyRequest $request |
||
18 | * |
||
19 | * @return \Psr\Http\Message\ServerRequestInterface |
||
20 | */ |
||
21 | public static function convertSymfonyRequestToPsr7(SymfonyRequest $request) |
||
27 | |||
28 | /** |
||
29 | * Convert a Symfony HTTP Response to a Psr7 Response |
||
30 | * |
||
31 | * @param SymfonyResponse $response |
||
32 | * |
||
33 | * @return \Psr\Http\Message\ResponseInterface |
||
34 | */ |
||
35 | public static function convertSymfonyResponseToPsr7(SymfonyResponse $response) |
||
41 | |||
42 | /** |
||
43 | * Convert a Symfony HTTP Request to a Psr7 Response |
||
44 | * |
||
45 | * @param \Psr\Http\Message\ServerRequestInterface $request |
||
46 | * |
||
47 | * @return \Symfony\Component\HttpFoundation\Request |
||
48 | */ |
||
49 | public static function convertPsr7RequestToSymfony(ServerRequestInterface $request) |
||
55 | |||
56 | /** |
||
57 | * Convert a Symfony HTTP Response to a Psr7 Response |
||
58 | * |
||
59 | * @param \Psr\Http\Message\ResponseInterface $response |
||
60 | * |
||
61 | * @return \Symfony\Component\HttpFoundation\Response |
||
62 | */ |
||
63 | public static function convertPsr7ResponseToSymfony(ResponseInterface $response) |
||
69 | } |
||
70 |