Updated how config is imported and merged, so that it includes any config file in json format from config/params dir

This commit is contained in:
Alejandro Celaya
2018-12-07 20:42:58 +01:00
parent 9e3dd82efe
commit 2db03a163d
2 changed files with 3 additions and 2 deletions

View File

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