You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->expectDeprecation('Since symfony/messenger 5.3: The "prefetch_count" option passed to the AMQP Messenger transport has no effect and should not be used.');
Copy file name to clipboardExpand all lines: Transport/Connection.php
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -149,7 +149,6 @@ public function __construct(array $connectionOptions, array $exchangeOptions, ar
149
149
* * queue_name_pattern: Pattern to use to create the queues (Default: "delay_%exchange_name%_%routing_key%_%delay%")
150
150
* * exchange_name: Name of the exchange to be used for the delayed/retried messages (Default: "delays")
151
151
* * auto_setup: Enable or not the auto-setup of queues and exchanges (Default: true)
152
-
* * prefetch_count: set channel prefetch count
153
152
*
154
153
* * Connection tuning options (see http://www.rabbitmq.com/amqp-0-9-1-reference.html#connection.tune for details):
155
154
* * channel_max: Specifies highest channel number that the server permits. 0 means standard extension limit
@@ -238,6 +237,10 @@ private static function validateOptions(array $options): void
238
237
trigger_deprecation('symfony/messenger', '5.1', 'Invalid option(s) "%s" passed to the AMQP Messenger transport. Passing invalid options is deprecated.', implode('", "', $invalidOptions));
239
238
}
240
239
240
+
if (isset($options['prefetch_count'])) {
241
+
trigger_deprecation('symfony/messenger', '5.3', 'The "prefetch_count" option passed to the AMQP Messenger transport has no effect and should not be used.');
242
+
}
243
+
241
244
if (\is_array($options['queues'] ?? false)) {
242
245
foreach ($options['queues'] as$queue) {
243
246
if (!\is_array($queue)) {
@@ -492,10 +495,6 @@ public function channel(): \AMQPChannel
0 commit comments