Skip to content

Commit

Permalink
Fixing bug where the name was always interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Mar 16, 2018
1 parent 2a72ee3 commit 7d3042c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Maker/MakeEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public function configureCommand(Command $command, InputConfiguration $inputConf

public function interact(InputInterface $input, ConsoleStyle $io, Command $command)
{
if ($input->getArgument('name')) {
return;
}

if ($input->getOption('regenerate')) {
$io->block([
'This command will generate any missing methods (e.g. getters & setters) for a class or all classes in a namespace.',
Expand Down

0 comments on commit 7d3042c

Please sign in to comment.