/** * @see sfRouting */ public function loadConfiguration() { if ($this->options['load_configuration'] && ($config = $this->getConfigFilename())) { include $config; } parent::loadConfiguration(); }
/** * @see sfRouting */ public function loadConfiguration() { if (!is_null($this->cache) && ($routes = $this->cache->get('symfony.routing.configuration'))) { $this->routes = unserialize($routes); $this->routesFullyLoaded = false; } else { if ($this->options['load_configuration'] && ($config = sfContext::getInstance()->getConfigCache()->checkConfig('config/routing.yml', true))) { $this->setRoutes(include $config); } parent::loadConfiguration(); if (!is_null($this->cache)) { if (!$this->options['lazy_routes_deserialize']) { $this->cache->set('symfony.routing.configuration', serialize($this->routes)); } else { $lazyMap = array(); foreach ($this->routes as $name => $route) { if (is_string($route)) { $route = $this->loadRoute($name); } $lazyMap[$name] = serialize($route); } $this->cache->set('symfony.routing.configuration', serialize($lazyMap)); } } } }
/** * @see sfRouting */ public function loadConfiguration() { if ($this->options['load_configuration'] && ($config = sfContext::getInstance()->getConfigCache()->checkConfig('config/routing.yml', true))) { foreach (include $config as $name => $route) { $this->routes[$name] = $route; } } parent::loadConfiguration(); }
/** * @see sfRouting */ public function loadConfiguration() { if (!is_null($this->cache) && ($routes = $this->cache->get('symfony.routing.configuration'))) { $this->routes = unserialize($routes); } else { if ($this->options['load_configuration'] && ($config = sfContext::getInstance()->getConfigCache()->checkConfig('config/routing.yml', true))) { $this->setRoutes(include $config); } parent::loadConfiguration(); if (!is_null($this->cache)) { $this->cache->set('symfony.routing.configuration', serialize($this->routes)); } } }