Zend\Uri\UriFactory
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
Synopsis
class UriFactory
{
- // members
- protected array $schemeClasses;
- // methods
- public static void registerScheme()
- public static void unregisterScheme()
- public static string|null getRegisteredSchemeClass()
- public static Uri factory()
Members
protected
- $schemeClasses
—
array
Registered scheme-specific classes
Methods
public
- factory() — Create a URI from a string
- getRegisteredSchemeClass() — Get the class name for a registered scheme
- registerScheme() — Register a scheme-specific class to be used
- unregisterScheme() — Unregister a scheme