UriFactoryInterface.php 968 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace OAuth\Common\Http\Uri;
  3. /**
  4. * Factory interface for uniform resource indicators
  5. */
  6. interface UriFactoryInterface
  7. {
  8. /**
  9. * Factory method to build a URI from a super-global $_SERVER array.
  10. *
  11. * @param array $_server
  12. *
  13. * @return UriInterface
  14. */
  15. public function createFromSuperGlobalArray(array $_server);
  16. /**
  17. * Creates a URI from an absolute URI
  18. *
  19. * @param string $absoluteUri
  20. *
  21. * @return UriInterface
  22. */
  23. public function createFromAbsolute($absoluteUri);
  24. /**
  25. * Factory method to build a URI from parts
  26. *
  27. * @param string $scheme
  28. * @param string $userInfo
  29. * @param string $host
  30. * @param string $port
  31. * @param string $path
  32. * @param string $query
  33. * @param string $fragment
  34. *
  35. * @return UriInterface
  36. */
  37. public function createFromParts($scheme, $userInfo, $host, $port, $path = '', $query = '', $fragment = '');
  38. }