Zend\Mvc\Router\Http\Hostname
Hostname route.
Synopsis
class Hostname
implements
RouteInterface
{
- // members
- protected array $parts;
- protected string $regex;
- protected array $paramMap;
- protected array $defaults;
- protected array $assembledParams;
- // methods
- public void __construct()
- public static Hostname factory()
- protected array parseRouteDefinition()
- protected string buildRegex()
- protected string buildHost()
- public RouteMatch|null match()
- public mixed assemble()
- public array getAssembledParams()
Hierarchy
Implements
Members
protected
- $assembledParams
—
array
List of assembled parameters. - $defaults
—
array
Default values. - $paramMap
—
array
Map from regex groups to parameter names. - $parts
—
array
Parts of the route. - $regex
—
string
Regex used for matching the route.
Methods
protected
- buildHost() — Build host.
- buildRegex() — Build the matching regex from parsed parts.
- parseRouteDefinition() — Parse a route definition.
public
- __construct() — Create a new hostname route.
- assemble() — assemble(): Defined by RouteInterface interface.
- factory() — factory(): defined by RouteInterface interface.
- getAssembledParams() — getAssembledParams(): defined by RouteInterface interface.
- match() — match(): defined by RouteInterface interface.