]> git.mxchange.org Git - friendica.git/commitdiff
Remove default logchannel from Container::setup()
authorArt4 <art4@wlabs.de>
Thu, 9 Jan 2025 09:34:43 +0000 (09:34 +0000)
committerArt4 <art4@wlabs.de>
Thu, 9 Jan 2025 09:34:43 +0000 (09:34 +0000)
src/Core/Container.php
src/Core/DiceContainer.php

index 44d770c644f06a9f8fea02d6212e82fde9ec7b4c..84f8564a8755c9ead79a7b5635d5ca197d2b1f49 100644 (file)
@@ -9,8 +9,6 @@ declare(strict_types=1);
 
 namespace Friendica\Core;
 
-use Friendica\Core\Logger\Capability\LogChannel;
-
 /**
  * Dependency Injection Container
  */
@@ -25,7 +23,7 @@ interface Container
         *
         * @return void
         */
-       public function setup(string $logChannel = LogChannel::DEFAULT): void;
+       public function setup(string $logChannel): void;
 
        /**
         * Returns a fully constructed object based on $name using $args and $share as constructor arguments if supplied
index bba5a18ab6dc34260454a6d04a2f75fdc154362d..2c1f5faba7030b90410c6addf93f33cd22acd573 100644 (file)
@@ -10,7 +10,6 @@ declare(strict_types=1);
 namespace Friendica\Core;
 
 use Dice\Dice;
-use Friendica\Core\Logger\Capability\LogChannel;
 use Friendica\DI;
 use Psr\Log\LoggerInterface;
 
@@ -44,7 +43,7 @@ final class DiceContainer implements Container
         *
         * @return void
         */
-       public function setup(string $logChannel = LogChannel::DEFAULT): void
+       public function setup(string $logChannel): void
        {
                $this->setupContainerForLogger($logChannel);
                $this->setupLegacyServiceLocator();