You are here

public function SubscriberAudit::__construct in Acquia Content Hub 8

Public constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The Config Factory.

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

\Drupal\Core\Database\Connection $database: The Database Connection Service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The Event Dispatcher.

\Drupal\acquia_contenthub_subscriber\SubscriberCommon $common: The SubscriberCommon Service.

\Drupal\acquia_contenthub\Client\ClientManagerInterface $client_manager: The Client Manager Service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The Entity Type Manager.

\Drupal\acquia_contenthub\ImportEntityManager $import_entity_manager: The Import Entity Manager.

\Drupal\acquia_contenthub\ContentHubEntitiesTracking $contenthub_entities_tracking: The Content Hub Entities Tracking Service.

File

acquia_contenthub_audit/src/SubscriberAudit.php, line 109

Class

SubscriberAudit
Audits Subscribers.

Namespace

Drupal\acquia_contenthub_audit

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityRepositoryInterface $entity_repository, Connection $database, EventDispatcherInterface $dispatcher, SubscriberCommon $common, ClientManagerInterface $client_manager, EntityTypeManagerInterface $entity_type_manager, ImportEntityManager $import_entity_manager, ContentHubEntitiesTracking $contenthub_entities_tracking) {
  $this->configFactory = $config_factory;
  $this->entityRepository = $entity_repository;
  $this->database = $database;
  $this->dispatcher = $dispatcher;
  $this->common = $common;
  $this->client = $client_manager
    ->getConnection([]);
  $this->filters = $entity_type_manager
    ->getStorage('contenthub_filter')
    ->loadMultiple();
  $this->importEntityManager = $import_entity_manager;
  $this->contentHubEntitiesTracking = $contenthub_entities_tracking;
}