You are here

public function MigrationCommands::__construct in Lightning Workflow 8.2

Same name and namespace in other branches
  1. 8.3 modules/lightning_scheduler/src/Commands/MigrationCommands.php \Drupal\lightning_scheduler\Commands\MigrationCommands::__construct()

LightningSchedulerCommands constructor.

Parameters

\Drupal\lightning_scheduler\Migrator $migrator: The migrator service.

File

modules/lightning_scheduler/src/Commands/MigrationCommands.php, line 31

Class

MigrationCommands
Provides Drush commands for migrating scheduler data to the new base fields.

Namespace

Drupal\lightning_scheduler\Commands

Code

public function __construct(Migrator $migrator, TranslationInterface $translation = NULL) {
  $this->migrator = $migrator;
}