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
Refactoring idea: Move the ReceivedStamp and RedeliveryStamp logic from the SendMessageMiddleware into the SendersLocator (or a decorator of it).
This avoids the need of requiring a SendersLocatorInterface::getSenderByAlias method and makes the code cleaner.
The text was updated successfully, but these errors were encountered:
Another idea: Inject the failed SenderInterface into the SendFailedMessageToFailureTransportListener instead of the MessageBusInterface.
If we also send retry messages directly to the sender instead of redispatching in the worker, we don't need \Symfony\Component\Messenger\Stamp\RedeliveryStamp::getSenderClassOrAlias all all.
Refactoring idea: Move the
ReceivedStamp
andRedeliveryStamp
logic from theSendMessageMiddleware
into theSendersLocator
(or a decorator of it).This avoids the need of requiring a
SendersLocatorInterface::getSenderByAlias
method and makes the code cleaner.The text was updated successfully, but these errors were encountered: