You are here

public function TopController::__construct in MongoDB 8.2

TopController constructor.

Parameters

\Psr\Log\LoggerInterface $logger: The logger service, to log intervening events.

\Drupal\mongodb_watchdog\Logger $watchdog: The MongoDB logger, to load stored events.

\Drupal\Core\Config\ImmutableConfig $config: The module configuration.

\MongoDB\Database $database: Needed because there is no group() command in phplib yet.

\Drupal\Core\Pager\PagerManagerInterface $pagerManager: The core pager.manager service.

Overrides ControllerBase::__construct

See also

https://jira.mongodb.org/browse/PHPLIB-177

File

modules/mongodb_watchdog/src/Controller/TopController.php, line 53

Class

TopController
The Top403/Top404 controllers.

Namespace

Drupal\mongodb_watchdog\Controller

Code

public function __construct(LoggerInterface $logger, Logger $watchdog, ImmutableConfig $config, Database $database, PagerManagerInterface $pagerManager) {
  parent::__construct($logger, $watchdog, $pagerManager, $config);
  $this->database = $database;
}