You are here

public function Command::__construct in Config Importer and Tools 8

Same name and namespace in other branches
  1. 8.2 src/Drush/Command.php \Drupal\config_import\Drush\Command::__construct()
  2. 8.0 src/Drush/Command.php \Drupal\config_import\Drush\Command::__construct()

Command constructor.

Parameters

string $alias: Alias of the command.

array $info: List of properties for command definition.

See also

hook_drush_command()

File

src/Drush/Command.php, line 37

Class

Command
Class Command.

Namespace

Drupal\config_import\Drush

Code

public function __construct($alias, array $info) {
  $this->info = $info;
  $this->alias = $alias;
  $this->info['class'] = static::class;
  $this->info['aliases'] = [
    $this->alias,
  ];
  $this
    ->options();
  $this
    ->examples();
}