1 | <?php |
||
8 | class AmqpListener extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'amqp:listen'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Listen AMQP messages'; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $queue; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $amqpProperties; |
||
33 | |||
34 | public function __construct(string $queue, array $amqpProperties) |
||
41 | |||
42 | public function handle(Amqp $amqp, AmqpHandler $amqpHandler) |
||
54 | } |
||
55 |