Class Regex

Summary

Fully Qualified Name: Laminas\Router\Http\Regex
Implements: RouteInterface

Description

Regex route.

Methods

Name Description Defined By
__construct() Create a new regex route. Regex
assemble() assemble(): Defined by RouteInterface interface. Regex
factory() factory(): defined by RouteInterface interface. Regex
getAssembledParams() getAssembledParams(): defined by RouteInterface interface. Regex
match() match(): defined by RouteInterface interface. Regex

Method Details

__construct()

Create a new regex route.

Parameter Name Type Description
$regex string
$spec string
$defaults array

Returns:

assemble()

assemble(): Defined by RouteInterface interface.

Parameter Name Type Description
$params array
$options array

Returns: mixed

factory()

factory(): defined by RouteInterface interface.

Parameter Name Type Description
$options array|\Traversable

Returns: \Regex

getAssembledParams()

getAssembledParams(): defined by RouteInterface interface.

Returns: array

match()

match(): defined by RouteInterface interface.

Parameter Name Type Description
$request \Request
$pathOffset int

Returns: \RouteMatch|null

Top