Simple route stack implementation.
Methods
Create a new simple route stack.
__construct(\Zend\Mvc\Router\RoutePluginManager $routePluginManager)
addRoute(): defined by RouteStackInterface interface.
addRoute(string $name, mixed $route, int $priority) : \Zend\Mvc\Router\SimpleRouteStack
see |
\Zend\Mvc\Router\RouteStackInterface::addRoute() |
Parameters
$name
string
$route
mixed
$priority
int
Returns
addRoutes(): defined by RouteStackInterface interface.
addRoutes(array | \Traversable $routes) : \Zend\Mvc\Router\SimpleRouteStack
see |
\Zend\Mvc\Router\RouteStackInterface::addRoutes() |
Parameters
$routes
array\Traversable
Exceptions
Returns
assemble(): defined by RouteInterface interface.
assemble(array $params, array $options) : mixed
see |
\Zend\Mvc\Router\RouteInterface::assemble() |
Parameters
$params
array
$options
array
Exceptions
Returns
mixed
factory(): defined by RouteInterface interface.
factory(array | \Traversable $options) : \Zend\Mvc\Router\SimpleRouteStack
see |
\Zend\Mvc\Router\RouteInterface::factory() |
Parameters
$options
array\Traversable
Exceptions
Returns
Get the added routes
getRoutes() : \Traversable
Returns
\Traversable
list of all routes
Check if a route with a specific name exists
hasRoute(string $name) : bool
Parameters
$name
string
Returns
bool
true if route exists
match(): defined by RouteInterface interface.
match(\Zend\Stdlib\RequestInterface $request) : \Zend\Mvc\Router\RouteMatch | null
see |
\Zend\Mvc\Router\RouteInterface::match() |
Parameters
Returns
removeRoute(): defined by RouteStackInterface interface.
removeRoute(string $name) : \Zend\Mvc\Router\SimpleRouteStack
see |
\Zend\Mvc\Router\RouteStackInterface::removeRoute() |
Parameters
$name
string
Returns
setRoutes(): defined by RouteStackInterface interface.
setRoutes(array | \Traversable $routes) : \Zend\Mvc\Router\SimpleRouteStack
Parameters
$routes
array\Traversable
Returns
Init method for extending classes.
init() : void
Create a route from array specifications.
routeFromArray(array | \Traversable $specs) : \Zend\Mvc\Router\RouteInterface
Parameters
$specs
array\Traversable
Exceptions
Returns
Properties
Default parameters.
$defaultParams : array