Skip to content

Commit

Permalink
Merge pull request #4 from Gappa/master
Browse files Browse the repository at this point in the history
Update GenerateCommand.php
  • Loading branch information
bicisteadm authored Feb 3, 2020
2 parents d711528 + 50f0c4c commit dba09ae
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 dba09ae

Please sign in to comment.