https://github.com/monteiro/messenger-multiple-failed-transports-pr34979
Symfony Messenger Multiple Failed Transports Feature demo
https://github.com/monteiro/messenger-multiple-failed-transports-pr34979
Last synced: 11 months ago
JSON representation
Symfony Messenger Multiple Failed Transports Feature demo
- Host: GitHub
- URL: https://github.com/monteiro/messenger-multiple-failed-transports-pr34979
- Owner: monteiro
- License: mit
- Created: 2020-09-20T14:56:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T08:24:36.000Z (over 5 years ago)
- Last Synced: 2025-07-22T02:03:40.968Z (11 months ago)
- Language: PHP
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# messenger-multiple-failed-transports-pr34979
Symfony Messenger Multiple Failed Transports Feature demo
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | Fix https://github.com/symfony/symfony/issues/34911
| License | MIT
| Doc PR | symfony/symfony-docs#13489
## Execute script to install all dependencies to execute this demo
```
git clone git@github.com:monteiro/messenger-multiple-failed-transports-pr34979.git
cd messenger-multiple-failed-transports-pr34979
sh setup.sh
```
## Generate messages in 2 transports that will go to different failed transports
```
bin/console app:mymessage
bin/console app:mymessage2
```
## Consume those messages and let them fail
```
bin/console messenger:consume async async_another
```
## Go to the database (credentials in .env file)
If you verify the two messages are in two different failed transports configured in messenger.yaml.
## Conclusion
You can play with the messenger.yaml to see all the different options!