You are here

public function BatchManager::__construct in Workbench Moderation to Content Moderation 8

Instantiate BatchManager.

Parameters

\Drupal\wbm2cm\MigrateManager $manager: The migration manager.

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value store factory.

\Psr\Log\LoggerInterface $logger: A logger instance.

File

src/BatchManager.php, line 52

Class

BatchManager
Manages communication between Batch API and the migration manager.

Namespace

Drupal\wbm2cm

Code

public function __construct(MigrateManager $manager, KeyValueFactoryInterface $key_value_factory, LoggerInterface $logger) {
  $this->manager = $manager;
  $this->batchStore = $key_value_factory
    ->get('wbm2cm_batch');
  $this->logger = $logger;
}