This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Messenger/Middleware
Fabien Potencier e512b7ecff feature #30652 Fixing a bug where messenger:consume could send message to wrong bus (weaverryan)
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
-------

ef077cf26c Fixing a bug where a transport could receive a message and dispatch it to a different bus
2019-03-23 15:33:29 +01:00
..
ActivationMiddleware.php [Messenger] marked the component as experimental for 4.2 2018-10-31 06:40:28 +01:00
AddBusNameStampMiddleware.php Fixing a bug where a transport could receive a message and dispatch it to a different bus 2019-03-23 21:29:45 +07:00
DispatchAfterCurrentBusMiddleware.php Support for handling messages after current bus is finished 2019-03-19 05:15:31 +01:00
HandleMessageMiddleware.php [Messenger] deprecate LoggingMiddleware in favor of providing a logger to SendMessageMiddleware 2019-03-14 08:52:20 +01:00
LoggingMiddleware.php [Messenger] deprecate LoggingMiddleware in favor of providing a logger to SendMessageMiddleware 2019-03-14 08:52:20 +01:00
MiddlewareInterface.php [Messenger] marked the component as experimental for 4.2 2018-10-31 06:40:28 +01:00
SendMessageMiddleware.php Dispatching two events when a message is sent & handled 2019-03-23 10:14:01 -04:00
StackInterface.php [Messenger] marked the component as experimental for 4.2 2018-10-31 06:40:28 +01:00
StackMiddleware.php [Messenger] marked the component as experimental for 4.2 2018-10-31 06:40:28 +01:00
TraceableMiddleware.php [Messenger] Cleaning after new changes 2018-11-06 16:29:01 +01:00
ValidationMiddleware.php [Messenger] collect all stamps added on Envelope as collections 2018-11-12 08:39:23 +01:00