From dc65958c1794cf7ba743d6161e7e2e5da07688d2 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Dec 2024 10:17:22 +0000 Subject: [PATCH] refactor setup DI --- src/App.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.php b/src/App.php index 7ff13e3e1b..9202e80129 100644 --- a/src/App.php +++ b/src/App.php @@ -222,7 +222,8 @@ class App $this->setupContainerForLogger(LogChannel::DAEMON); - DI::init($this->container); + $this->setupLegacyServerLocator(); + \Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(LoggerInterface::class)); if (DI::mode()->isInstall()) {