Remove default logchannel from Container::setup()

This commit is contained in:
Art4 2025-01-09 09:34:43 +00:00
parent f40fb6b099
commit 870b3b9a1c
2 changed files with 2 additions and 5 deletions

View file

@ -9,8 +9,6 @@ declare(strict_types=1);
namespace Friendica\Core; namespace Friendica\Core;
use Friendica\Core\Logger\Capability\LogChannel;
/** /**
* Dependency Injection Container * Dependency Injection Container
*/ */
@ -25,7 +23,7 @@ interface Container
* *
* @return void * @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 * Returns a fully constructed object based on $name using $args and $share as constructor arguments if supplied

View file

@ -10,7 +10,6 @@ declare(strict_types=1);
namespace Friendica\Core; namespace Friendica\Core;
use Dice\Dice; use Dice\Dice;
use Friendica\Core\Logger\Capability\LogChannel;
use Friendica\DI; use Friendica\DI;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
@ -44,7 +43,7 @@ final class DiceContainer implements Container
* *
* @return void * @return void
*/ */
public function setup(string $logChannel = LogChannel::DEFAULT): void public function setup(string $logChannel): void
{ {
$this->setupContainerForLogger($logChannel); $this->setupContainerForLogger($logChannel);
$this->setupLegacyServiceLocator(); $this->setupLegacyServiceLocator();