You are here

public function SanityCheck::__construct in MongoDB 8.2

SanityCheck constructor.

Parameters

\Drupal\mongodb\DatabaseFactory $dbFactory: The mongodb.database_factory service.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config.factory service.

File

modules/mongodb_watchdog/src/Install/SanityCheck.php, line 55

Class

SanityCheck
Class SanityCheck provides some reasonableness checks for MongoDB contents.

Namespace

Drupal\mongodb_watchdog\Install

Code

public function __construct(DatabaseFactory $dbFactory, ConfigFactoryInterface $configFactory) {
  $this->dbFactory = $dbFactory;
  $this->config = $configFactory
    ->get(Logger::CONFIG_NAME);
  $this->items = $this->config
    ->get(Logger::CONFIG_ITEMS);
}