Skip to content

Commit

Permalink
Use question strings generate:plugin:block (#3039)
Browse files Browse the repository at this point in the history
There are question strings defined but they aren't used, unlike in other plugin generation commands.
  • Loading branch information
NickDickinsonWilde authored and jmolivas committed Dec 22, 2016
1 parent f31a252 commit ebcd2a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Command/Generate/PluginBlockCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
$class = $input->getOption('class');
if (!$class) {
$class = $io->ask(
$this->trans('commands.generate.plugin.block.options.class'),
$this->trans('commands.generate.plugin.block.questions.class'),
'DefaultBlock',
function ($class) {
return $this->validator->validateClassName($class);
Expand All @@ -247,7 +247,7 @@ function ($class) {
$label = $input->getOption('label');
if (!$label) {
$label = $io->ask(
$this->trans('commands.generate.plugin.block.options.label'),
$this->trans('commands.generate.plugin.block.questions.label'),
$this->stringConverter->camelCaseToHuman($class)
);
$input->setOption('label', $label);
Expand All @@ -257,7 +257,7 @@ function ($class) {
$pluginId = $input->getOption('plugin-id');
if (!$pluginId) {
$pluginId = $io->ask(
$this->trans('commands.generate.plugin.block.options.plugin-id'),
$this->trans('commands.generate.plugin.block.questions.plugin-id'),
$this->stringConverter->camelCaseToUnderscore($class)
);
$input->setOption('plugin-id', $pluginId);
Expand All @@ -267,7 +267,7 @@ function ($class) {
$themeRegion = $input->getOption('theme-region');
if (!$themeRegion) {
$themeRegion = $io->choiceNoList(
$this->trans('commands.generate.plugin.block.options.theme-region'),
$this->trans('commands.generate.plugin.block.questions.theme-region'),
array_values($themeRegions),
null,
true
Expand Down

0 comments on commit ebcd2a1

Please sign in to comment.