Move path determination logic into the ConfigFactory

This commit is contained in:
Philipp 2021-09-12 13:44:29 +02:00
parent 5702944116
commit 27e4586597
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
10 changed files with 114 additions and 55 deletions

View file

@ -57,7 +57,7 @@ class DatabaseLockDriverTest extends LockTest
// load real config to avoid mocking every config-entry which is related to the Database class
$configFactory = new ConfigFactory();
$loader = new ConfigFileLoader($this->root->url(), []);
$loader = (new ConfigFactory())->createConfigFileLoader($this->root->url(), []);
$configCache = $configFactory->createCache($loader);
$dba = new StaticDatabase($configCache, $profiler, $logger);