From a0cbfb697aaa4b4532c84c327dfe4650db923873 Mon Sep 17 00:00:00 2001 From: Klaus Purer Date: Sun, 16 Jun 2024 16:26:04 +0200 Subject: [PATCH] Remove unused drupalLoggerAdapter code (#6028) --- src/Boot/DrupalBoot8.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Boot/DrupalBoot8.php b/src/Boot/DrupalBoot8.php index 9fdff8ff02..02f2fdaf6e 100644 --- a/src/Boot/DrupalBoot8.php +++ b/src/Boot/DrupalBoot8.php @@ -25,7 +25,6 @@ class DrupalBoot8 extends DrupalBoot { - protected ?LoggrInterface $drupalLoggerAdapter = null; protected ?DrupalKernelInterface $kernel = null; protected Request $request; @@ -49,23 +48,6 @@ public function getKernel(): DrupalKernelInterface return $this->kernel; } - /** - * Sometimes (e.g. in the integration tests), the DrupalBoot - * object will be cached, and re-injected into a fresh set - * of preflight / bootstrap objects. When this happens, the - * new Drush logger will be injected into the boot object. If - * this happens after we have created the Drupal logger adapter - * (i.e., after bootstrapping Drupal), then we also need to - * update the logger reference in that adapter. - */ - public function setLogger(LoggerInterface $logger): void - { - if ($this->drupalLoggerAdapter) { - $this->drupalLoggerAdapter->setLogger($logger); - } - parent::setLogger($logger); - } - public function validRoot(?string $path): bool { if (!empty($path) && is_dir($path) && file_exists($path . '/autoload.php')) {