$namespace
$namespace :
The namespace of which to collect the routes in when matching, so you can define routes under a common endpoint
AbstractRouteFactory
Abstract class for a factory for building new Route instances
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 factory method
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 |