]> git.mxchange.org Git - friendica.git/commitdiff
Refactor setup Container for Logger
authorArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 19:11:54 +0000 (19:11 +0000)
committerArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 19:11:54 +0000 (19:11 +0000)
src/App.php

index 38408e897feda898d692c6e397e8730bcbf75c3e..51134c05e7e5494286579094daafa1e2773dc2a7 100644 (file)
@@ -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));