Function uri_for
Returns a UriInterface for the given value.
This function accepts a string or Psr\Http\Message\UriInterface
and
returns a UriInterface for the given value. If the value is already a
UriInterface
, it is returned as-is.
string| |
$uri |
|
UriInterface |
InvalidArgumentException
|
\InvalidArgumentException |