You are here

public function CronController::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/CronController.php \Drupal\system\CronController::__construct()
  2. 9 core/modules/system/src/CronController.php \Drupal\system\CronController::__construct()

Constructs a CronController object.

Parameters

\Drupal\Core\CronInterface $cron: The cron service.

File

core/modules/system/src/CronController.php, line 28

Class

CronController
Controller for Cron handling.

Namespace

Drupal\system

Code

public function __construct(CronInterface $cron) {
  $this->cron = $cron;
}