From 502d0d1b53626ca7675e577de2c1afa48ed981e7 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Dec 2024 10:30:09 +0000 Subject: [PATCH] Replace DI::mode() with container --- src/App.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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();