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/Tests
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
..
Command fixed CS 2019-01-16 21:35:37 +01:00
DataCollector fixed CS 2019-01-16 19:35:49 +01:00
DependencyInjection 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
Fixtures Adding global retry support, events & more to messenger transport 2019-03-23 09:39:27 -04:00
Handler fixed CS 2019-01-16 21:35:37 +01:00
Middleware feature #30652 Fixing a bug where messenger:consume could send message to wrong bus (weaverryan) 2019-03-23 15:33:29 +01:00
Retry Adding global retry support, events & more to messenger transport 2019-03-23 09:39:27 -04:00
Stamp Adding global retry support, events & more to messenger transport 2019-03-23 09:39:27 -04:00
Transport Ensure an exception is thrown when the AMQP connect() does not work 2019-03-23 21:09:32 +07:00
EnvelopeTest.php Adding global retry support, events & more to messenger transport 2019-03-23 09:39:27 -04:00
HandleTraitTest.php [Messenger] Add a trait for synchronous query & command buses 2018-11-20 19:19:09 +01:00
MessageBusTest.php fixed CS 2019-01-16 21:35:37 +01:00
RoutableMessageBusTest.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
TraceableMessageBusTest.php fixed CS 2019-01-16 21:35:37 +01:00
WorkerTest.php Adding global retry support, events & more to messenger transport 2019-03-23 09:39:27 -04:00