Replace DI::mode() with container

This commit is contained in:
Art4 2024-12-26 10:30:09 +00:00
parent cb5a1daa40
commit 502d0d1b53

View 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();