-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Sender "chaining" does not work as advertised in the messenger component #27908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Can you give us the exact exception (with its track trace) and the full
messenger configuration that you have?
Thank you :)
…On Tue, 10 Jul 2018 at 04:24, Billy ***@***.***> wrote:
*Symfony version(s) affected*: 4.1.1
*Description*
The messenger component documentation says that "A class of messages can
also be routed to multiple senders by specifying a list", but this doesn't
work. You get an exception stating that the SenderLocator "is a smaller
service locator that only knows about the .... jobs".
*How to reproduce*
The documented use case ought to reproduce it:
framework:
messenger:
routing:
'My\Message\ToBeSentToTwoSenders': [amqp, audit]
*Possible Solution*
Problem seems to be that the chained sender service that gets generated
during the compiler pass is added to the global container, when it needs to
be added to the service locator. Maybe?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#27908>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAxHEWnWo7z0PQj7gGXBycu1nJzvX3orks5uFB6JgaJpZM4VIs6R>
.
|
Messenger config:
Exception:
|
Good catch. The following PR should fix it: #28014. |
sroze
added a commit
that referenced
this issue
Jul 25, 2018
This PR was merged into the 4.1 branch. Discussion ---------- [Messenger] Fix chaining senders with their aliases | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27908 | License | MIT | Doc PR | ø Turns out chaining senders when using their alias as the name is broken. This PR fixes it :) Commits ------- 98bb64c Chaining senders with their aliases should work
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 4.1.1
Description
The messenger component documentation says that "A class of messages can also be routed to multiple senders by specifying a list", but this doesn't work. You get an exception stating that the SenderLocator "is a smaller service locator that only knows about the .... jobs".
How to reproduce
The documented use case ought to reproduce it:
Possible Solution
Problem seems to be that the chained sender service that gets generated during the compiler pass is added to the global container, when it needs to be added to the service locator. Maybe?
The text was updated successfully, but these errors were encountered: