Skip to content

Commit dee7395

Browse files
committed
Add default description to GenerateContextCommand and update constructor
1 parent 12c2e14 commit dee7395

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Command/GenerateContextCommand.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,22 @@
1212
class GenerateContextCommand extends Command
1313
{
1414
protected static $defaultName = 'thedevopser:generate:context';
15+
protected static $defaultDescription = 'Génère une structure de dossiers pour un contexte métier';
16+
1517
private string $projectDir;
1618
private Filesystem $filesystem;
1719

1820
public function __construct(KernelInterface $kernel)
1921
{
20-
parent::__construct();
2122
$this->projectDir = $kernel->getProjectDir();
2223
$this->filesystem = new Filesystem();
24+
parent::__construct(self::$defaultName);
2325
}
2426

2527
protected function configure(): void
2628
{
2729
$this
28-
->setDescription('Génère une structure de dossiers pour un contexte métier')
30+
->setDescription(self::$defaultDescription)
2931
->addArgument(
3032
'context',
3133
InputArgument::REQUIRED,

0 commit comments

Comments
 (0)