NULL_PATH_VALUE
NULL_PATH_VALUE
The value given to path's when they are entered as null values
RouteFactory
The default implementation of the AbstractRouteFactory
setNamespace(string $namespace) : \app\framework\Component\Route\Klein\AbstractRouteFactory
Sets the value of namespace
string | $namespace | The namespace from which to collect the Routes under |
appendNamespace(string $namespace) : \app\framework\Component\Route\Klein\AbstractRouteFactory
Append a namespace to the current namespace
string | $namespace | The namespace from which to collect the Routes under |
build(callable $callback, string $path = null, string|array $method = null, boolean $count_match = true, string $name = null) : \app\framework\Component\Route\Klein\Route
Build a Route instance
This method should be implemented to return a Route instance
callable | $callback | Callable callback method to execute on route match |
string | $path | Route URI path to match |
string|array | $method | HTTP Method to match |
boolean | $count_match | Whether or not to count the route as a match when counting total matches |
string | $name | The name of the route |
preprocessPathString(string $path) : string
Pre-process a path string
This method wraps the path string in a regular expression syntax baesd on whether the string is a catch-all or custom regular expression. It also adds the namespace in a specific part, based on the style of expression
string | $path |