@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | use Zend\Stdlib\Glob; |
15 | 15 | |
16 | 16 | $cachedConfigFile = 'data/cache/app_config.php'; |
17 | -$config = []; |
|
17 | +$config = [ ]; |
|
18 | 18 | |
19 | 19 | if (is_file($cachedConfigFile) === true) { |
20 | 20 | return new ArrayObject(include $cachedConfigFile, ArrayObject::ARRAY_AS_PROPS); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $config = ArrayUtils::merge($config, include $file); |
25 | 25 | } |
26 | 26 | |
27 | -if (isset($config['config_cache_enabled']) === true && $config['config_cache_enabled'] === true) { |
|
27 | +if (isset($config[ 'config_cache_enabled' ]) === true && $config[ 'config_cache_enabled' ] === true) { |
|
28 | 28 | file_put_contents($cachedConfigFile, '<?php return '.var_export($config, true).';'); |
29 | 29 | } |
30 | 30 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | ], |
39 | 39 | |
40 | 40 | 'error' => [ |
41 | - 'middleware' => [], |
|
41 | + 'middleware' => [ ], |
|
42 | 42 | 'error' => true, |
43 | 43 | 'priority' => -10000, |
44 | 44 | ], |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $config = require __DIR__.'/config.php'; |
18 | 18 | $container = new ServiceManager(); |
19 | 19 | |
20 | -(new Config($config['dependencies']))->configureServiceManager($container); |
|
20 | +(new Config($config[ 'dependencies' ]))->configureServiceManager($container); |
|
21 | 21 | |
22 | 22 | $container->setService('config', $config); |
23 | 23 |