Skip to content

Commit 8e887c9

Browse files
committed
Move generate command name to attribute
1 parent 5d3a89a commit 8e887c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/GenerateTablesCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66
use GW\DQO\Formatter\Formatter;
77
use GW\DQO\Generator\GenerateTables;
88
use GW\Safe\SafeConsoleInput;
9+
use Symfony\Component\Console\Attribute\AsCommand;
910
use Symfony\Component\Console\Command\Command;
1011
use Symfony\Component\Console\Input\InputArgument;
1112
use Symfony\Component\Console\Input\InputInterface;
1213
use Symfony\Component\Console\Input\InputOption;
1314
use Symfony\Component\Console\Output\OutputInterface;
1415
use Symfony\Component\Console\Style\SymfonyStyle;
1516

17+
#[AsCommand('dqo:generate-tables')]
1618
final class GenerateTablesCommand extends Command
1719
{
18-
protected static $defaultName = 'dqo:generate-tables';
1920
private GenerateTables $generateTables;
2021
private Formatter $formatter;
2122

0 commit comments

Comments
 (0)