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