Skip to content

Commit

Permalink
Update GenerateCommand.php
Browse files Browse the repository at this point in the history
Add $defaultName property.
  • Loading branch information
Gappa authored Jan 31, 2020
1 parent 1b18ff3 commit 50f0c4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WebLoader/Nette/SymfonyConsole/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class GenerateCommand extends \Symfony\Component\Console\Command\Command
/** @var \WebLoader\Compiler[] */
private $compilers = [];

protected static $defaultName = 'webloader:generate';


public function __construct(Nette\DI\Container $container)
{
Expand All @@ -33,7 +35,7 @@ public function __construct(Nette\DI\Container $container)

protected function configure(): void
{
$this->setName('webloader:generate')
$this->setName(self::$defaultName)
->setDescription('Generates files.')
->addOption('force', 'f', InputOption::VALUE_NONE, 'Generate if not modified.');
}
Expand Down

0 comments on commit 50f0c4c

Please sign in to comment.