mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Refactor IManageConfigValues interface
This commit is contained in:
parent
326566638f
commit
1e574d5383
13 changed files with 46 additions and 49 deletions
|
@ -81,21 +81,4 @@ class Config
|
|||
|
||||
return $configCache;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Cache $configCache The config cache of this adapter
|
||||
* @param Repository\Config $configRepo The configuration repository
|
||||
*
|
||||
* @return Capability\IManageConfigValues
|
||||
*/
|
||||
public function create(Util\ConfigFileManager $loader, Cache $configCache, Repository\Config $configRepo)
|
||||
{
|
||||
if ($configCache->get('system', 'config_adapter') === 'preload') {
|
||||
$configuration = new Type\PreloadConfig($loader, $configCache, $configRepo);
|
||||
} else {
|
||||
$configuration = new Type\JitConfig($loader, $configCache, $configRepo);
|
||||
}
|
||||
|
||||
return $configuration;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue