Skip to content

Commit c103721

Browse files
author
Bogdan Rancichi
committed
batch consumer will have just 1 callback that behaves like a regular consumer just has an array of messages instead of a single one
1 parent bbbac11 commit c103721

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

DependencyInjection/OldSoundRabbitMqExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,9 @@ protected function loadBatchConsumers()
363363
->addTag('old_sound_rabbit_mq.batch_consumer')
364364
->addMethodCall('setTimeoutWait', array($consumer['timeout_wait']))
365365
->addMethodCall('setPrefetchCount', array($consumer['qos_options']['prefetch_count']))
366-
->addMethodCall('setBatchCallback', array(array(new Reference($consumer['callback']), 'batchExecute')))
366+
->addMethodCall('setCallback', array(array(new Reference($consumer['callback']), 'batchExecute')))
367367
->addMethodCall('setExchangeOptions', array($this->normalizeArgumentKeys($consumer['exchange_options'])))
368368
->addMethodCall('setQueueOptions', array($this->normalizeArgumentKeys($consumer['queue_options'])))
369-
->addMethodCall('setCallback', array(array(new Reference($consumer['callback']), 'execute')))
370369
->addMethodCall('setQosOptions', array(
371370
$consumer['qos_options']['prefetch_size'],
372371
$consumer['qos_options']['prefetch_count'],

0 commit comments

Comments
 (0)