Skip to content

Commit edd0653

Browse files
author
Xavier Seguí Beltrán
committedApr 4, 2025
Add named parameter name to ConsumeCommand and RoutesCommand
1 parent 9284fdc commit edd0653

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

Diff for: ‎src/Command/ConsumeCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
use Enqueue\SimpleClient\SimpleClient;
55
use Enqueue\Symfony\Client\SimpleConsumeCommand;
6+
use Symfony\Component\Console\Attribute\AsCommand;
67

8+
#[AsCommand(name: 'enqueue:consume')]
79
class ConsumeCommand extends SimpleConsumeCommand
810
{
911
public function __construct(SimpleClient $client)

Diff for: ‎src/Command/RoutesCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
use Enqueue\SimpleClient\SimpleClient;
55
use Enqueue\Symfony\Client\SimpleRoutesCommand;
6+
use Symfony\Component\Console\Attribute\AsCommand;
67

8+
#[AsCommand(name: 'enqueue:routes')]
79
class RoutesCommand extends SimpleRoutesCommand
810
{
911
public function __construct(SimpleClient $client)

0 commit comments

Comments
 (0)
Please sign in to comment.