From e0a249f9a4335bebbe8db6cc94e027598790ec17 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Dec 2024 19:12:32 +0000 Subject: [PATCH] Refactor r init service locator --- src/App.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.php b/src/App.php index 51134c05e7..f5c0240f26 100644 --- a/src/App.php +++ b/src/App.php @@ -440,7 +440,8 @@ class App $this->setupContainerForLogger(LogChannel::WORKER); - DI::init($this->container); + $this->setupLegacyServiceLocator(); + \Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(\Psr\Log\LoggerInterface::class)); DI::mode()->setExecutor(Mode::WORKER);