function AutomatedCron::__construct

Same name and namespace in other branches
  1. 11.x core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php \Drupal\automated_cron\EventSubscriber\AutomatedCron::__construct()
  2. 10 core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php \Drupal\automated_cron\EventSubscriber\AutomatedCron::__construct()
  3. 9 core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php \Drupal\automated_cron\EventSubscriber\AutomatedCron::__construct()
  4. 8.9.x core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php \Drupal\automated_cron\EventSubscriber\AutomatedCron::__construct()

File

core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php, line 19

Class

AutomatedCron
A subscriber running cron after a response is sent.

Namespace

Drupal\automated_cron\EventSubscriber

Code

public function __construct(#[AutowireServiceClosure('cron')] protected readonly \Closure $cron, protected readonly ConfigFactoryInterface $configFactory, protected StateInterface $state) {
}

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