From: Art4 Date: Thu, 26 Dec 2024 19:11:54 +0000 (+0000) Subject: Refactor setup Container for Logger X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31deac51178a533279a6639892a0ec0a87996b5b;p=friendica.git Refactor setup Container for Logger --- diff --git a/src/App.php b/src/App.php index 38408e897f..51134c05e7 100644 --- a/src/App.php +++ b/src/App.php @@ -438,7 +438,7 @@ class App { $this->setupContainerForAddons(); - $this->container = $this->container->addRule(LoggerInterface::class, ['constructParams' => [LogChannel::WORKER]]); + $this->setupContainerForLogger(LogChannel::WORKER); DI::init($this->container); \Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(\Psr\Log\LoggerInterface::class));