Used PhpFileProvider to load installer generated config

This commit is contained in:
Alejandro Celaya 2022-01-11 19:05:53 +01:00
parent f7e3a74794
commit 0d37eb65c9

View file

@ -37,7 +37,7 @@ return (new ConfigAggregator\ConfigAggregator([
new ConfigAggregator\PhpFileProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
env('APP_ENV') === 'test'
? new ConfigAggregator\PhpFileProvider('config/test/*.global.php')
: new ConfigAggregator\LaminasConfigProvider('config/params/generated_config.php'),
: new ConfigAggregator\PhpFileProvider('config/params/generated_config.php'),
], 'data/cache/app_config.php', [
Core\Config\BasePathPrefixer::class,
]))->getMergedConfig();