Use addCommand to replace add-method of Console Application

This commit is contained in:
Claudio Zizza
2026-01-14 00:35:50 +01:00
parent da4c127521
commit 2c890bd383

View File

@@ -47,12 +47,12 @@ final readonly class Application
SyncRepositoriesCommand $syncRepositoriesCommand,
BuildDatabaseCommand $buildDatabaseCommand,
) {
$this->application->add($buildAllCommand);
$this->application->add($buildDocsCommand);
$this->application->add($buildWebsiteCommand);
$this->application->add($clearBuildCacheCommand);
$this->application->add($syncRepositoriesCommand);
$this->application->add($buildDatabaseCommand);
$this->application->addCommand($buildAllCommand);
$this->application->addCommand($buildDocsCommand);
$this->application->addCommand($buildWebsiteCommand);
$this->application->addCommand($clearBuildCacheCommand);
$this->application->addCommand($syncRepositoriesCommand);
$this->application->addCommand($buildDatabaseCommand);
$this->application->setHelperSet(new HelperSet([
'question' => new QuestionHelper(),