URI Factory Class

The URI factory can be used to generate URI objects from strings, using a different URI subclass depending on the input URI scheme. New scheme-specific classes can be registered using the registerScheme() method.

Note that this class contains only static methods and should not be instantiated

category Zend
package Zend_Uri

 Methods

Create a URI from a string

factory(string $uriString, string $defaultScheme) : \Zend\Uri\Uri

Parameters

$uriString

string

$defaultScheme

string

Exceptions

\Zend\Uri\Exception\InvalidArgumentException

Returns

Register a scheme-specific class to be used

registerScheme(string $scheme, string $class) 

Parameters

$scheme

string

$class

string

Unregister a scheme

unregisterScheme(string $scheme) 

Parameters

$scheme

string

 Properties

 

Registered scheme-specific classes

$schemeClasses : array