@@ -183,8 +183,6 @@ public function publish(string $body, array $headers = [], int $delay = 0, strin
183
183
$ this ->setup ();
184
184
}
185
185
186
- // TODO - allow flag & attributes to be configured on the message
187
-
188
186
$ this ->exchange ()->publish (
189
187
$ body ,
190
188
$ routingKey ?? $ this ->getDefaultPublishRoutingKey (),
@@ -214,8 +212,6 @@ private function publishWithDelay(string $body, array $headers, int $delay, ?str
214
212
$ this ->setupDelay ($ delay , $ exchangeRoutingKey );
215
213
}
216
214
217
- // TODO - allow flag & attributes to be configured on the message
218
-
219
215
$ this ->getDelayExchange ()->publish (
220
216
$ body ,
221
217
$ this ->getRoutingKeyForDelay ($ delay ),
@@ -348,9 +344,6 @@ public function getQueueNames(): array
348
344
return array_keys ($ this ->queuesConfiguration );
349
345
}
350
346
351
- /**
352
- * @internal
353
- */
354
347
public function channel (): \AMQPChannel
355
348
{
356
349
if (null === $ this ->amqpChannel ) {
@@ -375,7 +368,7 @@ public function channel(): \AMQPChannel
375
368
return $ this ->amqpChannel ;
376
369
}
377
370
378
- private function queue (string $ queueName
9351
span>): \AMQPQueue
371
+ public function queue (string $ queueName ): \AMQPQueue
379
372
{
380
373
if (!isset ($ this ->amqpQueues [$ queueName ])) {
381
374
$ queueConfig = $ this ->queuesConfiguration [$ queueName ];
@@ -394,7 +387,7 @@ private function queue(string $queueName): \AMQPQueue
394
387
return $ this ->amqpQueues [$ queueName ];
395
388
}
396
389
397
- private function exchange (): \AMQPExchange
390
+ public function exchange (): \AMQPExchange
398
391
{
399
392
if (null === $ this ->amqpExchange ) {
400
393
$ this ->amqpExchange = $ this ->amqpFactory ->createExchange ($ this ->channel ());
0 commit comments