public function TextimageLogger::__construct in Textimage 8.3
Same name and namespace in other branches
- 8.4 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 42
Class
- TextimageLogger
- Defines a Textimage logger.
Namespace
Drupal\textimageCode
public function __construct(ConfigFactoryInterface $config_factory, LoggerInterface $logger_channel, AccountInterface $current_user) {
$this->configFactory = $config_factory;
$this->loggerChannel = $logger_channel;
$this->currentUser = $current_user;
}