SimpleUrlParser
Trait SimpleUrlParser
Tags
Table of Contents
- getDynamicRouteProcessor() : mixed
- Method searches dynamic route processor
- _getParameterNames() : array<string|int, string>
- Method returns all parameter names in the route
- _getRouteMatcherRegExPattern() : string
- Method compiles route pattern string in regex string.
Methods
getDynamicRouteProcessor()
Method searches dynamic route processor
protected
getDynamicRouteProcessor(string $route[, string $requestMethod = '' ]) : mixed
Parameters
- $route : string
-
route
- $requestMethod : string = ''
-
request method
Tags
Return values
mixed —_getParameterNames()
Method returns all parameter names in the route
private
_getParameterNames(string $routerPattern) : array<string|int, string>
Parameters
- $routerPattern : string
-
route
Return values
array<string|int, string> —names
_getRouteMatcherRegExPattern()
Method compiles route pattern string in regex string.
private
_getRouteMatcherRegExPattern(string $routerPattern) : string
For example [i:id]/some-str in ([[0-9]])/some-str
Parameters
- $routerPattern : string
-
router pattern
Return values
string —regexp pattern