File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed
Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 1717
1818namespace T3docs \Examples \Command ;
1919
20+ use Symfony \Component \Console \Attribute \AsCommand ;
2021use Symfony \Component \Console \Command \Command ;
2122use Symfony \Component \Console \Input \InputArgument ;
2223use Symfony \Component \Console \Input \InputInterface ;
2324use Symfony \Component \Console \Input \InputOption ;
2425use Symfony \Component \Console \Output \OutputInterface ;
2526use Symfony \Component \Console \Style \SymfonyStyle ;
2627use T3docs \Examples \Exception \InvalidWizardException ;
28+ use TYPO3 \CMS \Core \Command \NonSchedulableCommandInterface ;
2729
28- final class CreateWizardCommand extends Command
30+ #[AsCommand('examples:createwizard ' , 'A command that creates a wizard. It is hidden in the command list. You cannot use it in the scheduler. ' )]
31+ final class CreateWizardCommand extends Command implements NonSchedulableCommandInterface
2932{
3033 protected function configure (): void
3134 {
Original file line number Diff line number Diff line change 1717
1818namespace T3docs \Examples \Command ;
1919
20+ use Symfony \Component \Console \Attribute \AsCommand ;
2021use Symfony \Component \Console \Command \Command ;
2122use Symfony \Component \Console \Input \InputInterface ;
2223use Symfony \Component \Console \Output \OutputInterface ;
2324
25+ #[AsCommand('examples:dosomething ' , 'A command that does nothing and always succeeds. ' )]
2426final class DoSomethingCommand extends Command
2527{
2628 protected function configure (): void
Original file line number Diff line number Diff line change @@ -12,20 +12,6 @@ services:
1212 tags :
1313 - name : linkvalidator.linktype
1414
15- T3docs\Examples\Command\DoSomethingCommand :
16- tags :
17- - name : console.command
18- command : ' examples:dosomething'
19- description : ' A command that does nothing and always succeeds.'
20-
21- T3docs\Examples\Command\CreateWizardCommand :
22- tags :
23- - name : console.command
24- command : ' examples:createwizard'
25- description : ' A command that creates a wizard. It is hidden in the command list. You cannot use it in the scheduler.'
26- hidden : true
27- schedulable : false
28-
2915 T3docs\Examples\Controller\Haiku\DetailController :
3016 public : true
3117
You can’t perform that action at this time.
0 commit comments