From e04932331dfcdf8afdb1d195460ab25eb9620892 Mon Sep 17 00:00:00 2001 From: MarioRadu Date: Tue, 6 Feb 2024 14:50:10 +0200 Subject: [PATCH] fixed command name issue --- src/Command/DemoCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Command/DemoCommand.php b/src/Command/DemoCommand.php index 88b47a2..629228a 100644 --- a/src/Command/DemoCommand.php +++ b/src/Command/DemoCommand.php @@ -4,10 +4,15 @@ namespace Dot\Cli\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; +#[AsCommand( + name: 'demo:command', + description: 'Demo command description.', +)] class DemoCommand extends Command { /** @var string $defaultName */