You are here

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

Same name and namespace in other branches
  1. 8.2 src/EntityShareCronService.php \Drupal\entity_share_cron\EntityShareCronService::__construct()
  2. 8 src/EntityShareCronService.php \Drupal\entity_share_cron\EntityShareCronService::__construct()

Constructor.

Parameters

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

\Drupal\Core\Queue\QueueFactory $queue_factory: Queue service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.

\Drupal\entity_share_client\Service\ImportServiceInterface $import_service: Import service.

File

src/EntityShareCronService.php, line 60

Class

EntityShareCronService
Entity Share Cron service.

Namespace

Drupal\entity_share_cron

Code

public function __construct(ConfigFactoryInterface $config_factory, QueueFactory $queue_factory, EntityTypeManagerInterface $entity_type_manager, ImportServiceInterface $import_service) {
  $this->config = $config_factory
    ->get('entity_share_cron.settings');
  $this->queueFactory = $queue_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->importService = $import_service;
}