RouteCollectionInterface
interface RouteCollectionInterface (View source)
Methods
void
refreshNameLookups()
Refresh the name look-up table.
void
refreshActionLookups()
Refresh the action look-up table.
bool
hasNamedRoute(string $name)
Determine if the route collection contains a given named route.
Route|null
getByAction(string $action)
Get a route instance by its controller action.
array
getRoutesByMethod()
Get all of the routes keyed by their HTTP verb / method.
Route[]
getRoutesByName()
Get all of the routes keyed by their name.
Details
void
refreshNameLookups()
Refresh the name look-up table.
This is done in case any names are fluently defined or if routes are overwritten.
void
refreshActionLookups()
Refresh the action look-up table.
This is done in case any actions are overwritten with new controllers.