File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace VisualCraft \Bundle \WorkQueueBundle \Command ;
44
5+ use Symfony \Component \Console \Attribute \AsCommand ;
56use Symfony \Component \Console \Command \Command ;
67use Symfony \Component \Console \Input \InputArgument ;
78use Symfony \Component \Console \Input \InputInterface ;
89use Symfony \Component \Console \Output \OutputInterface ;
910use Symfony \Component \DependencyInjection \ServiceLocator ;
1011use VisualCraft \WorkQueue \QueueManager ;
1112
13+ #[AsCommand(name: 'vc:work-queue:clear ' )]
1214class ClearQueueCommand extends Command
1315{
1416 protected static $ defaultName = 'vc:work-queue:clear ' ;
@@ -33,7 +35,7 @@ protected function configure()
3335 ;
3436 }
3537
36- protected function execute (InputInterface $ input , OutputInterface $ output )
38+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
3739 {
3840 $ queues = array_unique ($ input ->getArgument ('queues ' ));
3941
Original file line number Diff line number Diff line change 22
33namespace VisualCraft \Bundle \WorkQueueBundle \Command ;
44
5+ use Symfony \Component \Console \Attribute \AsCommand ;
56use Symfony \Component \Console \Command \Command ;
67use Symfony \Component \Console \Input \InputArgument ;
78use Symfony \Component \Console \Input \InputInterface ;
89use Symfony \Component \Console \Output \OutputInterface ;
910use Symfony \Component \DependencyInjection \ServiceLocator ;
1011
12+ #[AsCommand(name: 'vc:work-queue:run ' )]
1113class RunProcessorCommand extends Command
1214{
1315 protected static $ defaultName = 'vc:work-queue:run ' ;
@@ -28,7 +30,7 @@ protected function configure()
2830 ;
2931 }
3032
31- protected function execute (InputInterface $ input , OutputInterface $ output )
33+ protected function execute (InputInterface $ input , OutputInterface $ output ): int
3234 {
3335 $ queue = $ input ->getArgument ('queue ' );
3436
Original file line number Diff line number Diff line change 77
88class Configuration implements ConfigurationInterface
99{
10- public function getConfigTreeBuilder ()
10+ public function getConfigTreeBuilder (): TreeBuilder
1111 {
1212 $ treeBuilder = new TreeBuilder ('visual_craft_work_queue ' );
1313 $ treeBuilder ->getRootNode ()
You can’t perform that action at this time.
0 commit comments