Rename method to setup logger

This commit is contained in:
Art4 2025-01-12 13:19:47 +00:00
parent 9d09b10537
commit ea35ec4d6e

View file

@ -140,7 +140,7 @@ class App
$this->setupContainerForAddons(); $this->setupContainerForAddons();
$this->setupContainerForLogger(LogChannel::APP); $this->setupLogChannel(LogChannel::APP);
$this->setupLegacyServiceLocator(); $this->setupLegacyServiceLocator();
@ -182,7 +182,7 @@ class App
{ {
$this->setupContainerForAddons(); $this->setupContainerForAddons();
$this->setupContainerForLogger($this->determineLogChannel($argv)); $this->setupLogChannel($this->determineLogChannel($argv));
$this->setupLegacyServiceLocator(); $this->setupLegacyServiceLocator();
@ -197,7 +197,7 @@ class App
{ {
$this->setupContainerForAddons(); $this->setupContainerForAddons();
$this->setupContainerForLogger(LogChannel::AUTH_JABBERED); $this->setupLogChannel(LogChannel::AUTH_JABBERED);
$this->setupLegacyServiceLocator(); $this->setupLegacyServiceLocator();
@ -245,7 +245,7 @@ class App
return LogChannel::CONSOLE; return LogChannel::CONSOLE;
} }
private function setupContainerForLogger(string $logChannel): void private function setupLogChannel(string $logChannel): void
{ {
/** @var LoggerManager */ /** @var LoggerManager */
$loggerManager = $this->container->create(LoggerManager::class); $loggerManager = $this->container->create(LoggerManager::class);