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 array $queues |
||
42 | * @param string $defaultQueue |
||
43 | * @param BackendInterface[] $backends |
||
44 | */ |
||
45 | public function __construct(array $queues, $defaultQueue, array $backends) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function publish(MessageInterface $message) |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function create($type, array $body) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function createAndPublish($type, array $body) |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function getQueues() |
||
87 | } |
||
88 |