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
feature #46053 [Messenger] Add option allow_no_senders to enable throwing when a message doesn't have a sender (babeuloula)
This PR was squashed before being merged into the 6.2 branch.
Discussion
----------
[Messenger] Add option `allow_no_senders` to enable throwing when a message doesn't have a sender
| Q | A
| ------------- | ---
| Branch? | 6.2 <!-- see below -->
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | /
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
<!--
Replace this notice by a short README for your feature/bugfix.
This will help reviewers and should be a good start for the documentation.
Additionally (see https://symfony.com/releases):
- Always add tests and ensure they pass.
- Bug fixes must be submitted against the lowest maintained branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too.)
- Features and deprecations must be submitted against the latest branch.
- Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
- Never break backward compatibility (see https://symfony.com/bc).
-->
Hello,
For my first contribution to the Symfony community I would like to propose this feature.
On my projects, sometimes I forget to update the messenger.yaml file and I don't have a routing for my new message. If you don't set the entry on the `routing` section, the message will be dispatch like if you use sync://.
In order to don't forget to add the entry, I've update the `SendMessageMiddleware` middleware to throw an exception.
For the documentation, I never work with rst file, so if someone would help me, i will very appreciate.
Thanks.
Commits
-------
ffa70f615b [Messenger] Add option `allow_no_senders` to enable throwing when a message doesn't have a sender
0 commit comments