You are here

public function ContentHubEntityExportController::__construct in Acquia Content Hub 8

Public Constructor.

Parameters

\Drupal\acquia_contenthub\Client\ClientManagerInterface $client_manager: The client manager.

\Drupal\acquia_contenthub\EntityManager $entity_manager: The Content Hub Entity Manager.

\Drupal\acquia_contenthub\ContentHubEntitiesTracking $contenthub_entities_tracking: The table where all entities are tracked.

\Drupal\acquia_contenthub\Normalizer\ContentEntityCdfNormalizer $acquia_contenthub_normalizer: The Content Hub Normalizer.

\Drupal\acquia_contenthub\Controller\ContentHubExportQueueController $export_queue_controller: The Content Hub Export Queue Controller.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: Entity Repository.

\Drupal\acquia_contenthub\ContentHubInternalRequest $internal_request: The Content Hub Internal Request Service.

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

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.

File

src/Controller/ContentHubEntityExportController.php, line 117

Class

ContentHubEntityExportController
Controller for Content Hub Export Entities using bulk upload.

Namespace

Drupal\acquia_contenthub\Controller

Code

public function __construct(ClientManagerInterface $client_manager, EntityManager $entity_manager, ContentHubEntitiesTracking $contenthub_entities_tracking, ContentEntityCdfNormalizer $acquia_contenthub_normalizer, ContentHubExportQueueController $export_queue_controller, EntityRepositoryInterface $entity_repository, ContentHubInternalRequest $internal_request, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory) {
  $this->clientManager = $client_manager;
  $this->entityManager = $entity_manager;
  $this->contentHubEntitiesTracking = $contenthub_entities_tracking;
  $this->entityCdfNormalizer = $acquia_contenthub_normalizer;
  $this->exportQueueController = $export_queue_controller;
  $this->entityRepository = $entity_repository;
  $this->internalRequest = $internal_request;
  $entity_config = $config_factory
    ->get('acquia_contenthub.entity_config');
  $this->exportQueueEnabled = (bool) $entity_config
    ->get('export_with_queue');
  $this->loggerFactory = $logger_factory;
}