]> git.mxchange.org Git - friendica.git/commitdiff
Replace DI::mode() with container
authorArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 10:30:09 +0000 (10:30 +0000)
committerArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 10:30:09 +0000 (10:30 +0000)
src/App.php

index 481b1c07c794d9be6e35e805edcaa57bb44726e4..165211f38bcdc73bbfa771440518b946746f59f8 100644 (file)
@@ -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();