function AutomatedCron::__construct
Same name and namespace in other branches
- 11.x core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php \Drupal\automated_cron\EventSubscriber\AutomatedCron::__construct()
- 10 core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php \Drupal\automated_cron\EventSubscriber\AutomatedCron::__construct()
- 9 core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php \Drupal\automated_cron\EventSubscriber\AutomatedCron::__construct()
- 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\EventSubscriberCode
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.