You are here

public function EntityShareCronService::__construct in Entity Share Cron 8

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

Constructor.

Parameters

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

\Drupal\entity_share_client\Service\RemoteManagerInterface $remote_manager: Remote manager to get channels infos from.

\Drupal\entity_share_client\Service\JsonapiHelperInterface $jsonapi_helper: Helps to prepare JSON responses.

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

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

File

src/EntityShareCronService.php, line 67

Class

EntityShareCronService
Entity Share Cron service.

Namespace

Drupal\entity_share_cron

Code

public function __construct(ConfigFactoryInterface $config_factory, RemoteManagerInterface $remote_manager, JsonapiHelperInterface $jsonapi_helper, QueueFactory $queue_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->config = $config_factory
    ->get('entity_share_cron.settings');
  $this->remoteManager = $remote_manager;
  $this->jsonapiHelper = $jsonapi_helper;
  $this->queueFactory = $queue_factory;
  $this->entityTypeManager = $entity_type_manager;
}