1 | <?php |
||
12 | class BaseConsumerCommand extends Command |
||
13 | { |
||
14 | /** |
||
15 | * The name and signature of the console command. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $signature = 'rabbitmq:consume {consumer} {--time=60} {--messages=100} {--memory=64}'; |
||
20 | |||
21 | /** |
||
22 | * The console command description. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $description = 'Start consuming messages'; |
||
27 | |||
28 | /** |
||
29 | * @param string $consumerAliasName |
||
30 | * @return ConsumerInterface |
||
31 | */ |
||
32 | protected function getConsumer(string $consumerAliasName): ConsumerInterface |
||
36 | |||
37 | /** |
||
38 | * Execute the console command. |
||
39 | * @return int |
||
40 | */ |
||
41 | 2 | public function handle() |
|
57 | } |
||
58 |