diff --git a/WebLoader/Nette/SymfonyConsole/GenerateCommand.php b/WebLoader/Nette/SymfonyConsole/GenerateCommand.php index 1ec36c3..7b121ba 100755 --- a/WebLoader/Nette/SymfonyConsole/GenerateCommand.php +++ b/WebLoader/Nette/SymfonyConsole/GenerateCommand.php @@ -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) { @@ -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.'); }