Exceptions
4 years ago
UriTemplate
4 years ago
Http.php
4 years ago
HttpFactory.php
4 years ago
Uri.php
4 years ago
UriInfo.php
4 years ago
UriResolver.php
4 years ago
UriString.php
4 years ago
UriTemplate.php
4 years ago
HttpFactory.php
26 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 | |
| 12 | declare(strict_types=1); |
| 13 | |
| 14 | namespace League\Uri; |
| 15 | |
| 16 | use Psr\Http\Message\UriFactoryInterface; |
| 17 | use Psr\Http\Message\UriInterface; |
| 18 | |
| 19 | final class HttpFactory implements UriFactoryInterface |
| 20 | { |
| 21 | public function createUri(string $uri = ''): UriInterface |
| 22 | { |
| 23 | return Http::createFromString($uri); |
| 24 | } |
| 25 | } |
| 26 |