MessageFactory.php
7 months ago
RequestFactory.php
7 months ago
ResponseFactory.php
7 months ago
StreamFactory.php
7 months ago
UriFactory.php
7 months ago
UriFactory.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaHttp\Message; |
| 4 | |
| 5 | use AmeliaVendor\Psr\Http\Message\UriInterface; |
| 6 | |
| 7 | /** |
| 8 | * Factory for PSR-7 URI. |
| 9 | * |
| 10 | * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> |
| 11 | * |
| 12 | * @deprecated since version 1.1, use AmeliaVendor\Psr\Http\Message\UriFactoryInterface instead. |
| 13 | */ |
| 14 | interface UriFactory |
| 15 | { |
| 16 | /** |
| 17 | * Creates an PSR-7 URI. |
| 18 | * |
| 19 | * @param string|UriInterface $uri |
| 20 | * |
| 21 | * @return UriInterface |
| 22 | * |
| 23 | * @throws \InvalidArgumentException if the $uri argument can not be converted into a valid URI |
| 24 | */ |
| 25 | public function createUri($uri); |
| 26 | } |
| 27 |