function CronHook::__construct

Same name and namespace in other branches
  1. 11.x core/modules/file/src/Hook/CronHook.php \Drupal\file\Hook\CronHook::__construct()

File

core/modules/file/src/Hook/CronHook.php, line 23

Class

CronHook
Implements hook_cron().

Namespace

Drupal\file\Hook

Code

public function __construct(protected readonly EntityTypeManagerInterface $entityTypeManager, protected readonly StreamWrapperManagerInterface $streamWrapperManager, protected readonly ConfigFactoryInterface $configFactory, protected readonly FileUsageInterface $fileUsage, protected readonly TimeInterface $time, #[Autowire('@logger.channel.file')] protected readonly LoggerInterface $logger) {
}

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