Skip to content

Commit

Permalink
register validate command
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Aug 8, 2024
1 parent 7716f1a commit c2c69c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DependencyInjection/ContainerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symplify\RuleDocGenerator\Command\GenerateCommand;
use Symplify\RuleDocGenerator\Command\ValidateCommand;

/**
* @api tests and bin file DI factory
Expand Down Expand Up @@ -54,6 +55,9 @@ private function registerConsole(Container $container): void
$generateCommand = $container->make(GenerateCommand::class);
$application->add($generateCommand);

$validateCommand = $container->make(ValidateCommand::class);
$application->add($validateCommand);

$this->propertyCallable($application, 'commands', static function (array $defaultCommands) {
unset($defaultCommands['completion']);
unset($defaultCommands['help']);
Expand Down

0 comments on commit c2c69c8

Please sign in to comment.