RequestFactory.php
7 months ago
ResponseFactory.php
7 months ago
ServerRequestFactory.php
7 months ago
StreamFactory.php
7 months ago
UploadedFileFactory.php
7 months ago
UriFactory.php
7 months ago
ResponseFactory.php
16 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Http\Factory\Guzzle; |
| 4 | |
| 5 | use AmeliaVendor\GuzzleHttp\Psr7\Response; |
| 6 | use AmeliaVendor\Psr\Http\Message\ResponseFactoryInterface; |
| 7 | use AmeliaVendor\Psr\Http\Message\ResponseInterface; |
| 8 | |
| 9 | class ResponseFactory implements ResponseFactoryInterface |
| 10 | { |
| 11 | public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface |
| 12 | { |
| 13 | return new Response($code, [], null, '1.1', $reasonPhrase); |
| 14 | } |
| 15 | } |
| 16 |