File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 33
44use Enqueue \SimpleClient \SimpleClient ;
55use Enqueue \Symfony \Client \SimpleConsumeCommand ;
6+ use Symfony \Component \Console \Attribute \AsCommand ;
67
8+ #[AsCommand(name: 'enqueue:consume ' )]
79class ConsumeCommand extends SimpleConsumeCommand
810{
911 public function __construct (SimpleClient $ client )
Original file line number Diff line number Diff line change 33
44use Enqueue \SimpleClient \SimpleClient ;
55use Enqueue \Symfony \Client \SimpleProduceCommand ;
6+ use Symfony \Component \Console \Attribute \AsCommand ;
67
8+ #[AsCommand(name: 'enqueue:produce ' )]
79class ProduceCommand extends SimpleProduceCommand
810{
911 public function __construct (SimpleClient $ client )
Original file line number Diff line number Diff line change 33
44use Enqueue \SimpleClient \SimpleClient ;
55use Enqueue \Symfony \Client \SimpleRoutesCommand ;
6+ use Symfony \Component \Console \Attribute \AsCommand ;
67
8+ #[AsCommand(name: 'enqueue:routes ' )]
79class RoutesCommand extends SimpleRoutesCommand
810{
911 public function __construct (SimpleClient $ client )
Original file line number Diff line number Diff line change 33
44use Enqueue \SimpleClient \SimpleClient ;
55use Enqueue \Symfony \Client \SimpleSetupBrokerCommand ;
6+ use Symfony \Component \Console \Attribute \AsCommand ;
67
8+ #[AsCommand(name: 'enqueue:setup-broker ' )]
79class SetupBrokerCommand extends SimpleSetupBrokerCommand
810{
911 public function __construct (SimpleClient $ client )
1012 {
1113 parent ::__construct ($ client ->getDriver ());
1214 }
13-
14- protected function configure ()
15- {
16- parent ::configure ();
17-
18- $ this ->setName ('enqueue:setup-broker ' );
19- }
2015}
You can’t perform that action at this time.
0 commit comments