DiactorosUriFactory.php
6 months ago
GuzzleUriFactory.php
6 months ago
SlimUriFactory.php
6 months ago
GuzzleUriFactory.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaHttp\Message\UriFactory; |
| 4 | |
| 5 | use AmeliaVendor\GuzzleHttp\Psr7; |
| 6 | use AmeliaHttp\Message\UriFactory; |
| 7 | |
| 8 | /** |
| 9 | * Creates Guzzle URI. |
| 10 | * |
| 11 | * @author David de Boer <david@ddeboer.nl> |
| 12 | */ |
| 13 | final class GuzzleUriFactory implements UriFactory |
| 14 | { |
| 15 | /** |
| 16 | * {@inheritdoc} |
| 17 | */ |
| 18 | public function createUri($uri) |
| 19 | { |
| 20 | return Psr7\Utils::uriFor($uri); |
| 21 | } |
| 22 | } |
| 23 |