diff --git a/src/Commands/FooCommand.php b/src/Commands/FooCommand.php index 2bc04d8..24b4614 100644 --- a/src/Commands/FooCommand.php +++ b/src/Commands/FooCommand.php @@ -4,20 +4,15 @@ namespace WickedByte\App\Commands; +use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use WickedByte\App\Foo; +#[AsCommand('foo', 'Placeholder Command')] class FooCommand extends Command { - #[\Override] - protected function configure(): void - { - $this->setName('foo') - ->setDescription('Placeholder Command'); - } - #[\Override] protected function execute(InputInterface $input, OutputInterface $output): int {