e512b7ecff
This PR was merged into the 4.3-dev branch.
Discussion
----------
Fixing a bug where messenger:consume could send message to wrong bus
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | yes
| New feature? | arguably, yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #30631
| License | MIT
| Doc PR | Not needed
This fixes #30631, where you can run `messener:consume` and accidentally sent received messages into the wrong bus.
The fix (done via middleware) is to attach a "bus name" to the `Envelope` and use it when the message is received to find that bus.
Commits
-------
|
||
---|---|---|
.. | ||
Command | ||
DataCollector | ||
DependencyInjection | ||
Fixtures | ||
Handler | ||
Middleware | ||
Retry | ||
Stamp | ||
Transport | ||
EnvelopeTest.php | ||
HandleTraitTest.php | ||
MessageBusTest.php | ||
RoutableMessageBusTest.php | ||
TraceableMessageBusTest.php | ||
WorkerTest.php |