You are here

public function TextimageLogger::__construct in Textimage 8.4

Same name and namespace in other branches
  1. 8.3 src/TextimageLogger.php \Drupal\textimage\TextimageLogger::__construct()

Constructs a TextimageLogger object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Psr\Log\LoggerInterface $logger_channel: The Textimage logger channel.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

Overrides LoggerChannel::__construct

File

src/TextimageLogger.php, line 44

Class

TextimageLogger
Defines a Textimage logger.

Namespace

Drupal\textimage

Code

public function __construct(ConfigFactoryInterface $config_factory, LoggerInterface $logger_channel, AccountInterface $current_user) {
  $this->configFactory = $config_factory;
  $this->loggerChannel = $logger_channel;
  $this->currentUser = $current_user;
}