Skip to content

Commit

Permalink
Support {{ command }} and {{command}}
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Mar 25, 2020
1 parent 2c9baaa commit dd1664c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GeneratesCommandCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ protected function replaceClass(string $stub, string $name): string
{
$stub = parent::replaceClass($stub, $name);

return \str_replace('dummy:command', $this->options['command'], $stub);
return \str_replace(['dummy:command', '{{ command }}', '{{command}}'], $this->options['command'], $stub);
}
}

0 comments on commit dd1664c

Please sign in to comment.