Zend Framework  3.0
Public Member Functions | List of all members
RouteStackInterface Interface Reference

Public Member Functions

 addRoute ($name, $route, $priority=null)
 Add a route to the stack.
 
 addRoutes ($routes)
 Add multiple routes to the stack.
 
 removeRoute ($name)
 Remove a route from the stack.
 
 setRoutes ($routes)
 Remove all routes from the stack and set new ones.
 
- Public Member Functions inherited from RouteInterface
 match (Request $request)
 Match a given request.
 
 assemble (array $params=[], array $options=[])
 Assemble the route.
 

Additional Inherited Members

- Static Public Member Functions inherited from RouteInterface
static factory ($options=[])
 Create a new route with given options.
 

Member Function Documentation

addRoute (   $name,
  $route,
  $priority = null 
)

Add a route to the stack.

Parameters
string$name
mixed$route
int$priority
Returns
RouteStackInterface

Implemented in SimpleRouteStack, TreeRouteStack, and SimpleRouteStack.

addRoutes (   $routes)

Add multiple routes to the stack.

Parameters
array | \Traversable$routes
Returns
RouteStackInterface

Implemented in SimpleRouteStack.

removeRoute (   $name)

Remove a route from the stack.

Parameters
string$name
Returns
RouteStackInterface

Implemented in SimpleRouteStack.

setRoutes (   $routes)

Remove all routes from the stack and set new ones.

Parameters
array | \Traversable$routes
Returns
RouteStackInterface

Implemented in SimpleRouteStack.