You are here

public function CronHookHandler::__construct in Entity Share Cron 3.0.x

CronHookHandler constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\State\StateInterface $state: The state service.

\Psr\Log\LoggerInterface $logger: The logger service.

\Drupal\entity_share_cron\EntityShareCronServiceInterface $entity_share_cron: The entity share cron service.

File

src/HookHandler/CronHookHandler.php, line 66

Class

CronHookHandler
Hook handler for the cron() hook.

Namespace

Drupal\entity_share_cron\HookHandler

Code

public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, LoggerInterface $logger, EntityShareCronServiceInterface $entity_share_cron) {
  $this->configFactory = $config_factory;
  $this->state = $state;
  $this->logger = $logger;
  $this->entityShareCron = $entity_share_cron;
}