1 | <?php |
||
8 | class TransactionalQueuePublisher implements QueuePublisher, Transactional |
||
9 | { |
||
10 | /** @var QueuePublisher */ |
||
11 | private $publisher; |
||
12 | |||
13 | /** @var array */ |
||
14 | private $messages; |
||
15 | |||
16 | /** |
||
17 | * Constructor. |
||
18 | * |
||
19 | * @param QueuePublisher $publisher |
||
20 | */ |
||
21 | public function __construct(QueuePublisher $publisher) |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function publish($data, $routingKey = "") |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function beginTransaction() |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function commit() |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function rollback() |
||
63 | } |
||
64 |