interface RouterInterface (View source)

Methods

resolveAction(Route $route)

No description

RouteCollection[]
getRoutes()

No description

addRoute(Route $route)

No description

getRouteByPath(string $path, RequestContext $context, array $routeAttributes = [])

Get a route given its path.

matchRoute(Request $request)

No description

loadRouteList(RouteListInterface $list)

No description

Details

RouteActionInterface resolveAction(Route $route)

No description

Parameters

Route $route

Return Value

RouteActionInterface

RouteCollection[] getRoutes()

No description

Return Value

RouteCollection[]

addRoute(Route $route)

No description

Parameters

Route $route

Route getRouteByPath(string $path, RequestContext $context, array $routeAttributes = [])

Get a route given its path.

Parameters

string $path

the path to be looked for

RequestContext $context

the context to be used to match the routes

array $routeAttributes

[output] if specified, this argument will contain the route attributes

Return Value

Route

Exceptions

NoConfigurationException
ResourceNotFoundException
MethodNotAllowedException

MatchedRoute matchRoute(Request $request)

No description

Parameters

Request $request

Return Value

MatchedRoute

Exceptions

NoConfigurationException
ResourceNotFoundException
MethodNotAllowedException

loadRouteList(RouteListInterface $list)

No description

Parameters

RouteListInterface $list