Skip to content

Commit 6a63100

Browse files
authored
Merge pull request #27 from dotkernel/issue-26
fixed command name issue
2 parents 8119fe9 + e049323 commit 6a63100

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Command/DemoCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44

55
namespace Dot\Cli\Command;
66

7+
use Symfony\Component\Console\Attribute\AsCommand;
78
use Symfony\Component\Console\Command\Command;
89
use Symfony\Component\Console\Input\InputInterface;
910
use Symfony\Component\Console\Output\OutputInterface;
1011

12+
#[AsCommand(
13+
name: 'demo:command',
14+
description: 'Demo command description.',
15+
)]
1116
class DemoCommand extends Command
1217
{
1318
/** @var string $defaultName */

0 commit comments

Comments
 (0)