symfony
symfony copied to clipboard
[FrameworkBundle][Notifier] Allow to configure or disable the message bus to use
| Q | A |
|---|---|
| Branch? | 5.4 |
| Bug fix? | no |
| New feature? | yes |
| Deprecations? | no |
| Tickets | - |
| License | MIT |
| Doc PR | tbd |
For the mailer integration there is already a possibility to disable or configure the message_bus to use. See: https://github.com/symfony/symfony/issues/34633 and https://github.com/symfony/symfony/pull/34648
This PR introduces a similar config option notifier.message_bus for the notifier integration.
Things done:
- [x] Add a config option
notifier.message_busfor the notifier configuration - [x] Adjust FrameworkExtension considering the new
message_busconfig option - [x] Add tests for the new config option
It looks like your commit is not associated with your GitHub account:

And FrameworkBundle is twice in the PR header 🧐
Anything left todo here @jschaedl ?
Hi @OskarStark Implementation is done. But I have no idea why tests are failing on PHP 7.4 🤔
Can you please rebase and see if it's still failing ? Thanks
@jschaedl can you please check the failing tests?
Thanks
@OskarStark I rebased the branch. Tests are still failing on PHP 8.0 but this seems to be unrelated with my changes.
The failures are related I believe.
Needs rebase after https://github.com/symfony/symfony/pull/40842 was merged
@OskarStark I am about to split this PR.
- Adding the missing TransportFactories to the FrameworkBundle: https://github.com/symfony/symfony/pull/40843 ✅
- I would like to add basic tests for the Framework integration for the Notifier: https://github.com/symfony/symfony/pull/40844 ✅
- Adding a test to make sure we won't forget to add TransportFactories anymore: https://github.com/symfony/symfony/pull/40845 ✅
- And then adding the possibility to add a specific message bus with this PR ✅
Rebased and ready for another review :-)
Ready to merge @nicolas-grekas ?
Please rebase to get rid of Travis, thanks
@OskarStark Rebase done.
Some tests are failing
@jschaedl Can you have a look at the failing tests?
@jschaedl I've rebased on current 6.2 and fixed the tests. Can you review my commit before I merge?
Friendly ping @jschaedl
I rebased again. Looks good to me now.
Thank you @jschaedl.