You are here

public function DynamicRouter::getRouteCollection in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\Routing

Code

public function getRouteCollection() {
  if (!$this->routeCollection instanceof RouteCollection) {
    $this->routeCollection = $this->provider ? new LazyRouteCollection($this->provider) : new RouteCollection();
  }
  return $this->routeCollection;
}