Skip to content

Commit

Permalink
chore(boot): Remove unused drupalLoggerAdapter code (#6029)
Browse files Browse the repository at this point in the history
  • Loading branch information
klausi authored Jun 16, 2024
1 parent 32c642b commit 0462184
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Boot/DrupalBoot8.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

class DrupalBoot8 extends DrupalBoot
{
protected ?LoggerInterface $drupalLoggerAdapter = null;
protected ?DrupalKernelInterface $kernel = null;
protected Request $request;

Expand All @@ -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 instanceof LoggerAwareInterface) {
$this->drupalLoggerAdapter->setLogger($logger);
}
parent::setLogger($logger);
}

public function validRoot(?string $path): bool
{
if (!empty($path) && is_dir($path) && file_exists($path . '/autoload.php')) {
Expand Down

0 comments on commit 0462184

Please sign in to comment.