Refactor r init service locator

This commit is contained in:
Art4 2024-12-26 19:12:32 +00:00
parent 31deac5117
commit e0a249f9a4

View file

@ -440,7 +440,8 @@ class App
$this->setupContainerForLogger(LogChannel::WORKER); $this->setupContainerForLogger(LogChannel::WORKER);
DI::init($this->container); $this->setupLegacyServiceLocator();
\Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(\Psr\Log\LoggerInterface::class)); \Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(\Psr\Log\LoggerInterface::class));
DI::mode()->setExecutor(Mode::WORKER); DI::mode()->setExecutor(Mode::WORKER);