You are here

public function MigrateUpgradeCommands::__construct in Migrate Upgrade 8.3

MigrateUpgradeCommands constructor.

Parameters

\Drupal\Core\State\StateInterface $state: State service.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger.factory service.

File

src/Commands/MigrateUpgradeCommands.php, line 44

Class

MigrateUpgradeCommands
Migrate Upgrade drush commands.

Namespace

Drupal\migrate_upgrade\Commands

Code

public function __construct(StateInterface $state, LoggerChannelFactoryInterface $logger_factory) {
  parent::__construct();
  $this->state = $state;
  $this->logger = $logger_factory
    ->get('drush');
}