|
@@ -28,10 +28,10 @@ |
|
|
block discarded – undo |
|
28
|
28
|
|
|
29
|
29
|
public function register(Application $app) |
|
30
|
30
|
{ |
|
31
|
|
- $app['config'] = $app->share(function (Application $app) { |
|
|
31
|
+ $app['config'] = $app->share(function(Application $app) { |
|
32
|
32
|
if ($this->cacheDirPath) { |
|
33
|
33
|
$cache = $this->getConfigCacheFactory($app['debug'])->cache($this->cacheDirPath.'/config.cache.php', |
|
34
|
|
- function (ConfigCacheInterface $cache) { |
|
|
34
|
+ function(ConfigCacheInterface $cache) { |
|
35
|
35
|
$config = $this->loadConfig(); |
|
36
|
36
|
|
|
37
|
37
|
$content = sprintf('<?php use Junker\Silex\Config; $c = new Config(%s);', var_export($config->data, true)).PHP_EOL; |
Please login to merge, or discard this patch.