PreloadableRouteProviderInterface
interface PreloadableRouteProviderInterface implements RouteProviderInterface (View source)
Extends the router provider interface to pre-load routes.
Methods
Get all routes which match a certain pattern.
Pre-load routes by their names using the provided list of names.
Details
RouteCollection
getRoutesByPattern(string $pattern)
Get all routes which match a certain pattern.
Route[]
getAllRoutes()
Returns all the routes on the system.
Usage of this method is discouraged for performance reasons. If possible, use RouteProviderInterface::getRoutesByNames() or RouteProviderInterface::getRoutesByPattern() instead.
reset()
Resets the route provider object.
preLoadRoutes(string[] $names)
Pre-load routes by their names using the provided list of names.
This method exists in order to allow performance optimizations. It allows pre-loading serialized routes that may latter be retrieved using ::getRoutesByName()