Skip to content

Commit 7d3042c

Browse files
committed
Fixing bug where the name was always interactive
1 parent 2a72ee3 commit 7d3042c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Maker/MakeEntity.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
7272

7373
public function interact(InputInterface $input, ConsoleStyle $io, Command $command)
7474
{
75+
if ($input->getArgument('name')) {
76+
return;
77+
}
78+
7579
if ($input->getOption('regenerate')) {
7680
$io->block([
7781
'This command will generate any missing methods (e.g. getters & setters) for a class or all classes in a namespace.',

0 commit comments

Comments
 (0)