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
RequestFactory.php
16 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Http\Factory\Guzzle; |
| 4 | |
| 5 | use AmeliaVendor\GuzzleHttp\Psr7\Request; |
| 6 | use AmeliaVendor\Psr\Http\Message\RequestFactoryInterface; |
| 7 | use AmeliaVendor\Psr\Http\Message\RequestInterface; |
| 8 | |
| 9 | class RequestFactory implements RequestFactoryInterface |
| 10 | { |
| 11 | public function createRequest(string $method, $uri): RequestInterface |
| 12 | { |
| 13 | return new Request($method, $uri); |
| 14 | } |
| 15 | } |
| 16 |