Skip to content

Commit d448e02

Browse files
committed
bug #1761 [maker:controller] Fix invokable -i conflict with APP_ID -i (ayyoub-afwallah)
This PR was merged into the 1.x branch. Discussion ---------- [maker:controller] Fix invokable `-i` conflict with APP_ID `-i` Fixs #1738 Unability to generate an app-specific controller `php bin/console make:controller test -iapi` > [critical] Error thrown while running command "make:controller test -iapi". Message: "The "-a" option does not exist." ` php bin/console make:controller test -i -iapi` > [critical] Error thrown while running command "make:controller test -i -iapi". Message: "The "-a" option does not exist." I think we are better off without this short param Commits ------- edc0747 [maker:controller] Fix invokable `-i` conflict with APP_ID `-i`
2 parents 3723575 + edc0747 commit d448e02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Maker/MakeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
6969
$command
7070
->addArgument('controller-class', InputArgument::OPTIONAL, \sprintf('Choose a name for your controller class (e.g. <fg=yellow>%sController</>)', Str::asClassName(Str::getRandomTerm())))
7171
->addOption('no-template', null, InputOption::VALUE_NONE, 'Use this option to disable template generation')
72-
->addOption('invokable', 'i', InputOption::VALUE_NONE, 'Use this option to create an invokable controller')
72+
->addOption('invokable', null, InputOption::VALUE_NONE, 'Use this option to create an invokable controller')
7373
->setHelp($this->getHelpFileContents('MakeController.txt'))
7474
;
7575

0 commit comments

Comments
 (0)