From 77f702b42ff88f11f77460a6035982d04b7170e2 Mon Sep 17 00:00:00 2001 From: Fan2Shrek Date: Wed, 25 Sep 2024 21:36:46 +0200 Subject: [PATCH] Ask missing question when using name argument --- src/Maker/MakeEntity.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Maker/MakeEntity.php b/src/Maker/MakeEntity.php index dfc25301d..b4c12e91b 100644 --- a/src/Maker/MakeEntity.php +++ b/src/Maker/MakeEntity.php @@ -108,7 +108,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf public function interact(InputInterface $input, ConsoleStyle $io, Command $command): void { if (($entityClassName = $input->getArgument('name')) && empty($this->verifyEntityName($entityClassName))) { - return; + goto entityNameVerified; } if ($input->getOption('regenerate')) { @@ -139,6 +139,7 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma $input->setArgument('name', $entityClassName); + entityNameVerified: if ( !$input->getOption('api-resource') && class_exists(ApiResource::class)