1958. Class

1958.1. 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

1958.1.1. Methods

1958.1.1.1. registerScheme

registerScheme()

Register a scheme-specific class to be used

Parameters:
  • string
  • string

1958.1.1.2. unregisterScheme

unregisterScheme()

Unregister a scheme

Parameters:string

1958.1.1.3. getRegisteredSchemeClass

getRegisteredSchemeClass()

Get the class name for a registered scheme

If provided scheme is not registered, will return NULL

Parameters:string
Return type:string|null

1958.1.1.4. factory

factory()

Create a URI from a string

Parameters:
  • string
  • string
Throws ExceptionInvalidArgumentException:
 
Return type:

ZendUriUri

Project Versions

Table Of Contents

Previous topic

1957. Class

Next topic

1959. Function

This Page