UriFactory.php 458 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Http\Message;
  3. use Psr\Http\Message\UriInterface;
  4. /**
  5. * Factory for PSR-7 URI.
  6. *
  7. * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
  8. */
  9. interface UriFactory
  10. {
  11. /**
  12. * Creates an PSR-7 URI.
  13. *
  14. * @param string|UriInterface $uri
  15. *
  16. * @return UriInterface
  17. *
  18. * @throws \InvalidArgumentException If the $uri argument can not be converted into a valid URI.
  19. */
  20. public function createUri($uri);
  21. }