public function DynamicRouter::getRouteCollection in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/DynamicRouter.php \Symfony\Cmf\Component\Routing\DynamicRouter::getRouteCollection()
Gets the RouteCollection instance associated with this Router.
Return value
RouteCollection A RouteCollection instance
Overrides RouterInterface::getRouteCollection
File
- vendor/
symfony-cmf/ routing/ DynamicRouter.php, line 114
Class
- DynamicRouter
- A flexible router accepting matcher and generator through injection and using the RouteEnhancer concept to generate additional data on the routes.
Namespace
Symfony\Cmf\Component\RoutingCode
public function getRouteCollection() {
if (!$this->routeCollection instanceof RouteCollection) {
$this->routeCollection = $this->provider ? new LazyRouteCollection($this->provider) : new RouteCollection();
}
return $this->routeCollection;
}