public function EventTemplateConverter::__construct in MongoDB 8.2
EventTemplateConverter constructor.
Parameters
\Psr\Log\LoggerInterface $logger: The logger service, to log intervening events.
\Drupal\mongodb_watchdog\Logger $watchdog: The MongoDB logger, to load event templates.
File
- modules/
mongodb_watchdog/ src/ EventTemplateConverter.php, line 39
Class
- EventTemplateConverter
- Class EventTemplateConverter load MongoDB watchdog event templates by id.
Namespace
Drupal\mongodb_watchdogCode
public function __construct(LoggerInterface $logger, Logger $watchdog) {
$this->logger = $logger;
$this->watchdog = $watchdog;
}