You are here

public function ControllerBase::__construct in MongoDB 8.2

ControllerBase constructor.

Parameters

\Psr\Log\LoggerInterface $logger: The logger.channel.mongodb_watchdog service.

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

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

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

4 calls to ControllerBase::__construct()
DetailController::__construct in modules/mongodb_watchdog/src/Controller/DetailController.php
Controller constructor.
OverviewController::__construct in modules/mongodb_watchdog/src/Controller/OverviewController.php
Controller constructor.
RequestController::__construct in modules/mongodb_watchdog/src/Controller/RequestController.php
Controller constructor.
TopController::__construct in modules/mongodb_watchdog/src/Controller/TopController.php
TopController constructor.
4 methods override ControllerBase::__construct()
DetailController::__construct in modules/mongodb_watchdog/src/Controller/DetailController.php
Controller constructor.
OverviewController::__construct in modules/mongodb_watchdog/src/Controller/OverviewController.php
Controller constructor.
RequestController::__construct in modules/mongodb_watchdog/src/Controller/RequestController.php
Controller constructor.
TopController::__construct in modules/mongodb_watchdog/src/Controller/TopController.php
TopController constructor.

File

modules/mongodb_watchdog/src/Controller/ControllerBase.php, line 56

Class

ControllerBase
Base controller class for paged reports.

Namespace

Drupal\mongodb_watchdog\Controller

Code

public function __construct(LoggerInterface $logger, Logger $watchdog, PagerManagerInterface $pagerManager, ImmutableConfig $config) {
  $this
    ->setLogger($logger);
  $this->itemsPerPage = $config
    ->get('items_per_page');
  $this->pagerManager = $pagerManager;
  $this->watchdog = $watchdog;
}