Zend\Mvc\Router\SimpleRouteStack
Simple route stack implementation.
Synopsis
class SimpleRouteStack
implements
RouteStackInterface
{
- // members
- protected PriorityList $routes;
- protected RoutePluginManager $routePluginManager;
- protected array $defaultParams;
- // methods
- public void __construct()
- public static SimpleRouteStack factory()
- protected void init()
- public SimpleRouteStack setRoutePluginManager()
- public RoutePluginManager getRoutePluginManager()
- public SimpleRouteStack addRoutes()
- public SimpleRouteStack addRoute()
- public SimpleRouteStack removeRoute()
- public SimpleRouteStack setRoutes()
- public Traversable getRoutes()
- public bool hasRoute()
- public RouteInterface getRoute()
- public SimpleRouteStack setDefaultParams()
- public SimpleRouteStack setDefaultParam()
- protected RouteInterface routeFromArray()
- public RouteMatch|null match()
- public mixed assemble()
Hierarchy
Extended by
- Zend\Mvc\Router\Console\SimpleRouteStack
- Zend\Mvc\Router\Http\Part
- Zend\Mvc\Router\Http\Chain
- Zend\Mvc\Router\Http\TranslatorAwareTreeRouteStack
- Zend\Mvc\Router\Http\TreeRouteStack
Implements
Members
protected
- $defaultParams
—
array
Default parameters. - $routePluginManager
—
Zend\Mvc\Router\RoutePluginManager
Route plugin manager - $routes
—
Zend\Mvc\Router\PriorityList
Stack containing all routes.
Methods
protected
- init() — Init method for extending classes.
- routeFromArray() — Create a route from array specifications.
public
- __construct() — Create a new simple route stack.
- addRoute() — addRoute(): defined by RouteStackInterface interface.
- addRoutes() — addRoutes(): defined by RouteStackInterface interface.
- assemble() — assemble(): defined by RouteInterface interface.
- factory() — factory(): defined by RouteInterface interface.
- getRoute() — Get a route by name
- getRoutePluginManager() — Get the route plugin manager.
- getRoutes() — Get the added routes
- hasRoute() — Check if a route with a specific name exists
- match() — match(): defined by RouteInterface interface.
- removeRoute() — removeRoute(): defined by RouteStackInterface interface.
- setDefaultParam() — Set a default parameter.
- setDefaultParams() — Set a default parameters.
- setRoutePluginManager() — Set the route plugin manager.
- setRoutes() — setRoutes(): defined by RouteStackInterface interface.