Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Messenger][WIP] Show how to configure multiple buses#10016
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ogizanagi commentedJul 6, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I don't know if this is a hard rule for Symfony docs, but the framework integration usually is documented in the Guides section or a dedicated page, not in the Component documentation itself. |
Koc commentedOct 5, 2018
Please describe how to register command/event/query handlers and how to seggregate them between buses. Nobody wants handle received message from from event bus through middlewares for command bus. |
ogizanagi commentedNov 7, 2018
| - messenger.middleware.validation | ||
| messenger.bus.event: | ||
| middleware: | ||
| - messenger.middleware.allow_no_handler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
In 4.2,default_middleware: allow_no_handlers must be used instead.
(https://github.com/symfony/symfony/blob/master/UPGRADE-4.2.md#frameworkbundle)
ogizanagi commentedNov 20, 2018
| You can configure these buses and their rules by using middlewares. | ||
| It might also be a good idea to separate actions from reactions by introducing | ||
| an **event bus**. The event bus could have zero or more subscribers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
If we're mentioning that events have zero or more subscribers, we should probably mention that commands and queries have exactly one handler.
Nyholm commentedDec 27, 2018
Thank you@magnusnordlander and@ogizanagi |
hoebelix commentedFeb 6, 2019
Inhttps://symfony.com/doc/master/messenger/multiple_buses.html there is no example for a routing configuration for multiple buses. It would be nice if there was a typical example configuration, something like: |
We do currently have no example configuration with the framework bundle. I think it is a good idea to show of how to use middleware's and how to define multiple buses.
This PR could be rewritten as a part of an existing page.
I know the configuration is not very different between the buses. Whensymfony/symfony#27839 andsymfony/symfony#27840 is implemented, this config will make more sense.