You are here

public function BulkDocsFactory::__construct in Replication 8

Same name and namespace in other branches
  1. 8.2 src/BulkDocsFactory.php \Drupal\replication\BulkDocsFactory::__construct()

Constructor.

Parameters

\Drupal\multiversion\Workspace\WorkspaceManagerInterface $workspace_manager:

\Drupal\multiversion\Entity\Index\UuidIndexInterface $uuid_index:

\Drupal\multiversion\Entity\Index\RevisionIndexInterface $rev_index:

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

\Drupal\Core\Lock\LockBackendInterface $lock:

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory:

\Drupal\Core\State\StateInterface $state:

\Drupal\Core\Config\ConfigFactoryInterface $config_factory:

File

src/BulkDocsFactory.php, line 74

Class

BulkDocsFactory

Namespace

Drupal\replication

Code

public function __construct(WorkspaceManagerInterface $workspace_manager, UuidIndexInterface $uuid_index, RevisionIndexInterface $rev_index, EntityTypeManagerInterface $entity_type_manager, LockBackendInterface $lock, LoggerChannelFactoryInterface $logger_factory, StateInterface $state, ConfigFactoryInterface $config_factory) {
  $this->workspaceManager = $workspace_manager;
  $this->uuidIndex = $uuid_index;
  $this->revIndex = $rev_index;
  $this->entityTypeManager = $entity_type_manager;
  $this->lock = $lock;
  $this->logger = $logger_factory
    ->get('replication');
  $this->state = $state;
  $this->config = $config_factory
    ->get('replication.settings');
}