$routeMatch
$routeMatch : \Pop\Router\Match\MatchInterface
Route match object
Pop router class
$routeMatch : \Pop\Router\Match\MatchInterface
Route match object
__construct(array $routes = null, \Pop\Router\Match\AbstractMatch $match = null)
Constructor
Instantiate the router object
array | $routes | |
\Pop\Router\Match\AbstractMatch | $match |
addRoute(string $route, mixed $controller) : \Pop\Router\Router
Add a route
string | $route | |
mixed | $controller |
addRoutes(array $routes) : \Pop\Router\Router
Add multiple controller routes
array | $routes |
addControllerParams(string $controller, mixed $params) : \Pop\Router\Router
Add controller params to be passed into a new controller instance
string | $controller | |
mixed | $params |
appendControllerParams(string $controller, mixed $params) : \Pop\Router\Router
Append controller params to be passed into a new controller instance
string | $controller | |
mixed | $params |
removeControllerParams(string $controller) : \Pop\Router\Router
Remove controller params
string | $controller |
getRouteMatch() : \Pop\Router\Match\MatchInterface
Get route match object
prepare() : \Pop\Router\Router
Prepare routes