You are here

protected function GenerateConfigurationUpdateCommand::configure in Update helper 8

File

src/Command/GenerateConfigurationUpdateCommand.php, line 95

Class

GenerateConfigurationUpdateCommand
Generate configuration update command class.

Namespace

Drupal\update_helper\Command

Code

protected function configure() {
  $this
    ->setName('generate:configuration:update')
    ->setDescription($this
    ->trans('commands.generate.configuration.update.description'))
    ->addOption('module', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.generate.configuration.update.options.module'))
    ->addOption('update-n', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.generate.configuration.update.options.update-n'))
    ->addOption('description', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.generate.configuration.update.options.description'))
    ->addOption('include-modules', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.generate.configuration.update.options.include-modules'))
    ->addOption('from-active', NULL, InputOption::VALUE_NONE, $this
    ->trans('commands.generate.configuration.update.options.from-active'))
    ->setAliases([
    'gcu',
  ]);

  // Get additional options provided by other modules.
  $event = new CommandConfigureEvent($this);
  $this->eventDispatcher
    ->dispatch(UpdateHelperEvents::COMMAND_GCU_CONFIGURE, $event);
}