You are here

public function ReplicatorManager::__construct in Workspace 8

The injected service to track conflicts during replication.

Parameters

\Drupal\multiversion\Workspace\ConflictTrackerInterface $conflict_tracker: The confict tracking service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Queue\QueueFactory $queue: The queue factory.

File

src/ReplicatorManager.php, line 62

Class

ReplicatorManager
Provides the Replicator manager.

Namespace

Drupal\workspace

Code

public function __construct(ConflictTrackerInterface $conflict_tracker, EventDispatcherInterface $event_dispatcher, QueueFactory $queue) {
  $this->conflictTracker = $conflict_tracker;
  $this->eventDispatcher = $event_dispatcher;
  $this->queue = $queue
    ->get('workspace_replication');
}