function CronController::__construct

Same name in other branches
  1. 9 core/modules/system/src/CronController.php \Drupal\system\CronController::__construct()
  2. 10 core/modules/system/src/CronController.php \Drupal\system\CronController::__construct()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.