You are here

public function Logger::__construct in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 src/Logger.php \Drupal\simple_sitemap\Logger::__construct()
  2. 8.2 src/Logger.php \Drupal\simple_sitemap\Logger::__construct()

Logger constructor.

Parameters

\Psr\Log\LoggerInterface $logger:

\Drupal\Core\Messenger\MessengerInterface $messenger:

\Drupal\Core\Session\AccountProxyInterface $current_user:

File

src/Logger.php, line 58

Class

Logger
Class Logger

Namespace

Drupal\simple_sitemap

Code

public function __construct(LoggerInterface $logger, MessengerInterface $messenger, AccountProxyInterface $current_user) {
  $this->logger = $logger;
  $this->messenger = $messenger;
  $this->currentUser = $current_user;
}