|
@@ -34,10 +34,10 @@ |
|
|
block discarded – undo |
|
34
|
34
|
|
|
35
|
35
|
public function register(Application $app) |
|
36
|
36
|
{ |
|
37
|
|
- $app['routes'] = $app->share($app->extend('routes', function (RouteCollection $routes, Application $app) { |
|
|
37
|
+ $app['routes'] = $app->share($app->extend('routes', function(RouteCollection $routes, Application $app) { |
|
38
|
38
|
if ($this->cacheDirPath) { |
|
39
|
39
|
$cache = $this->getConfigCacheFactory($app['debug'])->cache($this->cacheDirPath.'/routes.cache.php', |
|
40
|
|
- function (ConfigCacheInterface $cache) { |
|
|
40
|
+ function(ConfigCacheInterface $cache) { |
|
41
|
41
|
$collection = $this->loadRouteCollection(); |
|
42
|
42
|
|
|
43
|
43
|
$content = PhpRouteCollectionDumper::dump($collection); |
Please login to merge, or discard this patch.