HttpFactory.php 539 B

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