)
->addOption(
'interface',
- false,
+ null,
InputOption::VALUE_NONE,
$this->trans('commands.common.service.options.interface')
)
->addOption(
'interface_name',
- false,
+ null,
InputOption::VALUE_OPTIONAL,
$this->trans('commands.common.service.options.interface_name')
)
// @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
if (!$this->confirmGeneration($io)) {
- return;
+ return 1;
}
$module = $input->getOption('module');
$this->generator->generate($module, $name, $class, $interface, $interface_name, $build_services, $path_service);
$this->chainQueue->addCommand('cache:rebuild', ['cache' => 'all']);
+
+ return 0;
}
/**