From: Art4 Date: Thu, 26 Dec 2024 10:30:09 +0000 (+0000) Subject: Replace DI::mode() with container X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=502d0d1b53626ca7675e577de2c1afa48ed981e7;p=friendica.git Replace DI::mode() with container --- diff --git a/src/App.php b/src/App.php index 481b1c07c7..165211f38b 100644 --- a/src/App.php +++ b/src/App.php @@ -226,11 +226,14 @@ class App $this->registerErrorHandler(); - if (DI::mode()->isInstall()) { + /** @var Mode */ + $mode = $this->container->create(Mode::class); + + if ($mode->isInstall()) { die("Friendica isn't properly installed yet.\n"); } - DI::mode()->setExecutor(Mode::DAEMON); + $mode->setExecutor(Mode::DAEMON); DI::config()->reload();