Splitting ConfigCache & PConfigCache

- Remove IConfigCache & IPConfigCache
- Add new PConfigCache
- Add missing Logger::init() (bugfixing tests)
This commit is contained in:
Philipp Holzer
2019-07-12 22:38:50 +02:00
parent b56709d802
commit c82127ffb7
27 changed files with 527 additions and 334 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
namespace Friendica\Database;
use Friendica\Core\Config\Cache\IConfigCache;
use Friendica\Core\Config\Cache\ConfigCache;
use Friendica\Core\System;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Profiler;
@@ -25,7 +25,7 @@ class Database
private $connected = false;
/**
* @var IConfigCache
* @var ConfigCache
*/
private $configCache;
/**
@@ -55,7 +55,7 @@ class Database
private $db_name;
private $db_charset;
public function __construct(IConfigCache $configCache, Profiler $profiler, LoggerInterface $logger, $serveraddr, $user, HiddenString $pass, $db, $charset = null)
public function __construct(ConfigCache $configCache, Profiler $profiler, LoggerInterface $logger, $serveraddr, $user, HiddenString $pass, $db, $charset = null)
{
// We are storing these values for being able to perform a reconnect
$this->configCache = $configCache;