diff --git a/Classes/Command/DoSomethingCommand.php b/Classes/Command/DoSomethingCommand.php index b88b64f..ba23826 100644 --- a/Classes/Command/DoSomethingCommand.php +++ b/Classes/Command/DoSomethingCommand.php @@ -17,15 +17,10 @@ namespace T3docs\Examples\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: 'examples:dosomething', - description: 'A command that does nothing and always succeeds.', -)] final class DoSomethingCommand extends Command { protected function configure(): void diff --git a/Configuration/Services.yaml b/Configuration/Services.yaml index f3fc265..b535b3f 100644 --- a/Configuration/Services.yaml +++ b/Configuration/Services.yaml @@ -12,6 +12,12 @@ services: tags: - name: linkvalidator.linktype + T3docs\Examples\Command\DoSomethingCommand: + tags: + - name: console.command + command: 'examples:dosomething' + description: 'A command that does nothing and always succeeds.' + T3docs\Examples\Command\CreateWizardCommand: tags: - name: console.command