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
if (0 < \count($invalidOptions = array_diff(array_keys($options), self::AVAILABLE_OPTIONS))) {
241
-
trigger_deprecation('symfony/messenger', '5.1', 'Invalid option(s) "%s" passed to the AMQP Messenger transport. Passing invalid options is deprecated.', implode('", "', $invalidOptions));
242
-
}
243
-
244
-
if (isset($options['prefetch_count'])) {
245
-
trigger_deprecation('symfony/messenger', '5.3', 'The "prefetch_count" option passed to the AMQP Messenger transport has no effect and should not be used.');
240
+
thrownewLogicException(sprintf('Invalid option(s) "%s" passed to the AMQP Messenger transport.', implode('", "', $invalidOptions)));
246
241
}
247
242
248
243
if (\is_array($options['queues'] ?? false)) {
@@ -252,14 +247,14 @@ private static function validateOptions(array $options): void
252
247
}
253
248
254
249
if (0 < \count($invalidQueueOptions = array_diff(array_keys($queue), self::AVAILABLE_QUEUE_OPTIONS))) {
255
-
trigger_deprecation('symfony/messenger', '5.1', 'Invalid queue option(s) "%s" passed to the AMQP Messenger transport. Passing invalid queue options is deprecated.', implode('", "', $invalidQueueOptions));
250
+
thrownewLogicException(sprintf('Invalid queue option(s) "%s" passed to the AMQP Messenger transport.', implode('", "', $invalidQueueOptions)));
if (isset($tag['bus']) && !\in_array($tag['bus'], $busIds, true)) {
82
-
thrownewRuntimeException(sprintf('Invalid handler service "%s": bus "%s" specified on the tag "%s" does not exist (known ones are: "%s").', $serviceId, $tag['bus'], $this->handlerTag, implode('", "', $busIds)));
67
+
thrownewRuntimeException(sprintf('Invalid handler service "%s": bus "%s" specified on the tag "messenger.message_handler" does not exist (known ones are: "%s").', $serviceId, $tag['bus'], implode('", "', $busIds)));
$this->redeliveredAt = $redeliveredAt ?? new \DateTimeImmutable();
31
-
32
-
if (null !== $exceptionMessage) {
33
-
trigger_deprecation('symfony/messenger', '5.2', sprintf('Using the "$exceptionMessage" parameter in the "%s" class is deprecated, use the "%s" class instead.', self::class, ErrorDetailsStamp::class));
34
-
}
35
-
$this->exceptionMessage = $exceptionMessage;
36
-
37
-
if (null !== $flattenException) {
38
-
trigger_deprecation('symfony/messenger', '5.2', sprintf('Using the "$flattenException" parameter in the "%s" class is deprecated, use the "%s" class instead.', self::class, ErrorDetailsStamp::class));
39
-
}
40
-
$this->flattenException = $flattenException;
41
28
}
42
29
43
30
publicstaticfunctiongetRetryCountFromEnvelope(Envelope$envelope): int
@@ -53,26 +40,6 @@ public function getRetryCount(): int
53
40
return$this->retryCount;
54
41
}
55
42
56
-
/**
57
-
* @deprecated since Symfony 5.2, use ErrorDetailsStamp instead.
58
-
*/
59
-
publicfunctiongetExceptionMessage(): ?string
60
-
{
61
-
trigger_deprecation('symfony/messenger', '5.2', sprintf('Using the "getExceptionMessage()" method of the "%s" class is deprecated, use the "%s" class instead.', self::class, ErrorDetailsStamp::class));
62
-
63
-
return$this->exceptionMessage;
64
-
}
65
-
66
-
/**
67
-
* @deprecated since Symfony 5.2, use ErrorDetailsStamp instead.
trigger_deprecation('symfony/messenger', '5.2', sprintf('Using the "getFlattenException()" method of the "%s" class is deprecated, use the "%s" class instead.', self::class, ErrorDetailsStamp::class));