You are here

private function Router::getConfigCacheFactory in Zircon Profile 8

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

Provides the ConfigCache factory implementation, falling back to a default implementation if necessary.

Return value

ConfigCacheFactoryInterface $configCacheFactory

File

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

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

private function getConfigCacheFactory() {
  if (null === $this->configCacheFactory) {
    $this->configCacheFactory = new ConfigCacheFactory($this->options['debug']);
  }
  return $this->configCacheFactory;
}