Class RouteDefinition
The class defines options that can be used to define a route as well as means to normalize and validate this definition.
Methods summary
public static
|
|
public static
string
|
#
ensure_has_id( array & $definition )
Ensures that a route definition has an identifier and generates one if required. |
public static
|
Constants summary
string |
PATTERN
Pattern of the route. |
#
'pattern'
|
string |
CONTROLLER
A controller class name (with an optional action) or a callable. |
#
'controller'
|
string |
ACTION
The controller action. |
#
'action'
|
string |
ID
An identifier. |
#
'id'
|
string |
LOCATION
A redirection target. |
#
'location'
|
string |
VIA
Request method(s) accepted by the route. |
#
'via'
|
string |
CONSTRUCTOR
Route constructor, a class name for now. |
#
'class'
|