{
$cache = new ConfigCache($this->cacheFile, $this->debug);
if (!$cache->isFresh()) {
$routes = $this->wrappedCollector->getData();
// TODO: This seems a fragile way to handle this
if (!$this->isCacheable($routes)) {
return $routes;
}
$cache->write('<?php return '.var_export($routes, true).';');
in src/Router/RouteCollector/CachedCollector.php, line 60
{ $cache = new ConfigCache($this->cacheFile, $this->debug); if (!$cache->isFresh()) { $routes = $this->wrappedCollector->getData(); // TODO: This seems a fragile way to handle this if (!$this->isCacheable($routes)) { return $routes; } $cache->write('<?php return '.var_export($routes, true).';');Posted from SensioLabsInsight