mirror of
https://github.com/friendica/friendica
synced 2025-05-01 05:04:24 +02:00
Replace Config-Cache dependency with Config-Model (no more DB-waiting necessary)
This commit is contained in:
parent
a6fb683bcd
commit
ab6efea9b2
18 changed files with 210 additions and 325 deletions
|
@ -22,7 +22,7 @@
|
|||
namespace Friendica\App;
|
||||
|
||||
use Detection\MobileDetect;
|
||||
use Friendica\Core\Config\ValueObject\Cache;
|
||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Friendica\Database\Database;
|
||||
|
||||
/**
|
||||
|
@ -128,7 +128,7 @@ class Mode
|
|||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function determine(string $basePath, Database $database, Cache $configCache): Mode
|
||||
public function determine(string $basePath, Database $database, IManageConfigValues $config): Mode
|
||||
{
|
||||
$mode = 0;
|
||||
|
||||
|
@ -146,7 +146,7 @@ class Mode
|
|||
|
||||
$mode |= Mode::DBAVAILABLE;
|
||||
|
||||
if (!empty($configCache->get('system', 'maintenance'))) {
|
||||
if (!empty($config->get('system', 'maintenance'))) {
|
||||
return new Mode($mode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue