Exceptions
3 years ago
UriTemplate
3 years ago
Http.php
3 years ago
HttpFactory.php
3 years ago
Uri.php
3 years ago
UriInfo.php
3 years ago
UriResolver.php
3 years ago
UriString.php
3 years ago
UriTemplate.php
3 years ago
HttpFactory.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * League.Uri (https://uri.thephpleague.com) |
| 5 | * |
| 6 | * (c) Ignace Nyamagana Butera <nyamsprod@gmail.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | declare (strict_types=1); |
| 12 | namespace IAWP\League\Uri; |
| 13 | |
| 14 | use IAWP\Psr\Http\Message\UriFactoryInterface; |
| 15 | use IAWP\Psr\Http\Message\UriInterface; |
| 16 | final class HttpFactory implements UriFactoryInterface |
| 17 | { |
| 18 | public function createUri(string $uri = '') : UriInterface |
| 19 | { |
| 20 | return Http::createFromString($uri); |
| 21 | } |
| 22 | } |
| 23 |