Skip to content

PSR 17: UriFactory Example

Terry L edited this page Jun 21, 2020 · 3 revisions
Clone this wiki locally

PSR 17 Factories

Namespace

Shieldon\Psr17\UriFactory

UriFactory

__construct

None

createUri($uri)

  • param string uri = "" The URI to parse.
  • return UriInterface

Example:

$uriFactory = new UriFactory;
$uri = $uriFactory->createUri();

::fromGlobal()

(Non-PSR)

  • return UriInterface Examples:
$uri = UriFactory::fromGlobal();