Move path determination logic into the ConfigFactory

This commit is contained in:
Philipp Holzer 2021-09-12 13:44:29 +02:00
commit 27e4586597
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
10 changed files with 114 additions and 55 deletions

View file

@ -74,10 +74,12 @@ return [
]
],
Util\ConfigFileLoader::class => [
'shared' => true,
'constructParams' => [
[Dice::INSTANCE => '$basepath'],
$_SERVER,
'instanceOf' => Factory\ConfigFactory::class,
'call' => [
['createConfigFileLoader', [
[Dice::INSTANCE => '$basepath'],
$_SERVER,
], Dice::CHAIN_CALL],
],
],
Config\Cache::class => [