1 | <?php |
||
23 | abstract class QueueBackendDispatcher implements QueueDispatcherInterface, BackendInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $queues; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $defaultQueue; |
||
34 | |||
35 | /** |
||
36 | * @var BackendInterface[] |
||
37 | */ |
||
38 | protected $backends; |
||
39 | |||
40 | /** |
||
41 | * @param string $defaultQueue |
||
42 | * @param BackendInterface[] $backends |
||
43 | */ |
||
44 | public function __construct(array $queues, $defaultQueue, array $backends) |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function publish(MessageInterface $message): void |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function create($type, array $body) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function createAndPublish($type, array $body): void |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function getQueues() |
||
86 | } |
||
87 |