Improved config loading by using only one config provider object

This commit is contained in:
Alejandro Celaya 2016-08-14 22:56:22 +02:00
parent a608f7d0f4
commit 12322b7368

View file

@ -21,6 +21,5 @@ return (new ConfigManager\ConfigManager([
Core\ConfigProvider::class,
CLI\ConfigProvider::class,
Rest\ConfigProvider::class,
new ConfigManager\ZendConfigProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
new ConfigManager\PhpFileProvider('config/params/generated_config.php'),
new ConfigManager\ZendConfigProvider('config/{autoload/{{,*.}global,{,*.}local},params/generated_config}.php'),
], 'data/cache/app_config.php'))->getMergedConfig();