You are here

public function Router::getRouteCollection in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Router.php \Symfony\Component\Routing\Router::getRouteCollection()

Gets the RouteCollection instance associated with this Router.

Return value

RouteCollection A RouteCollection instance

Overrides RouterInterface::getRouteCollection

4 calls to Router::getRouteCollection()
Router::getGenerator in vendor/symfony/routing/Router.php
Gets the UrlGenerator instance associated with this Router.
Router::getGeneratorDumperInstance in vendor/symfony/routing/Router.php
This method is public because it needs to be callable from a closure in PHP 5.3. It should be converted back to protected in 3.0.
Router::getMatcher in vendor/symfony/routing/Router.php
Gets the UrlMatcher instance associated with this Router.
Router::getMatcherDumperInstance in vendor/symfony/routing/Router.php
This method is public because it needs to be callable from a closure in PHP 5.3. It should be converted back to protected in 3.0.

File

vendor/symfony/routing/Router.php, line 187

Class

Router
The Router class is an example of the integration of all pieces of the routing system for easier use.

Namespace

Symfony\Component\Routing

Code

public function getRouteCollection() {
  if (null === $this->collection) {
    $this->collection = $this->loader
      ->load($this->resource, $this->options['resource_type']);
  }
  return $this->collection;
}