1 | <?php |
||
15 | class RabbitMqSendDriver implements SendDriverInterface |
||
16 | { |
||
17 | /** |
||
18 | * Serializer instance. |
||
19 | * |
||
20 | * @var SerializerInterface |
||
21 | */ |
||
22 | private $serializer; |
||
23 | |||
24 | /** |
||
25 | * Producer instance. |
||
26 | * |
||
27 | * @var ProducerInterface |
||
28 | */ |
||
29 | private $producer; |
||
30 | |||
31 | /** |
||
32 | * Class constructor. |
||
33 | * |
||
34 | * @param SerializerInterface $serializer |
||
35 | * @param ProducerInterface $producer |
||
36 | */ |
||
37 | 1 | public function __construct(SerializerInterface $serializer, ProducerInterface $producer) |
|
42 | |||
43 | /** |
||
44 | * Send command using RabbitMQ server. |
||
45 | * |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 1 | public function send(CommandInterface $command) |
|
64 | } |
||
65 |