-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] [Redis] Make auth
option works
#42067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
A test case would be nice to prevent regressions |
@chalasr Sure, I'm on it. I will push it later today EDIT: sorry for the messy rebase on 5.3 |
As documentation mention "Options defined under options take precedence over ones defined in the DSN." (https://symfony.com/doc/current/messenger.html#transport-configuration), I've updated the code to respect that. Also, I've added test to assert that put the auth value at user or password place in the DSN doesn't matter. |
Good catch, thanks @welcoMattic. |
Merged on 5.2 as this is a quick win and we didn't discuss about freezing 5.2 yet. |
Considering this configuration:
It results to this error:
Because the
auth
option was never read from the options, only from the parsed DSN.This fix allows users to use
auth
option from the configuration.I target 5.3, as 5.2 is going to be unmaintained at the end of July