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