public function Logger::__construct in MongoDB 8
Parameters
\Drupal\mongodb\MongoCollectionFactory $collection_factory:
File
- src/
Logger/ Logger.php, line 38 - Logger functionality (watchdog).
Class
- Logger
- MongoDB logger implementation for watchdog().
Namespace
Drupal\mongodb\LoggerCode
public function __construct(MongoCollectionFactory $collection_factory) {
$this->collection_factory = $collection_factory;
$this->message_templates = $collection_factory
->get(static::TEMPLATE_COLLECTION);
}