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.
Go to file
Robin Chalas 6c2649961b
bug #42067 [Messenger] [Redis] Make auth option works (welcoMattic)
This PR was submitted for the 5.3 branch but it was squashed and merged into the 5.2 branch instead.

Discussion
----------

[Messenger] [Redis] Make `auth` option works

| Q             | A
| ------------- | ---
| Branch?       | 5.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Considering this configuration:

```yaml
framework:
    messenger:
        transports:
            queue:
                dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
                options:
                    stream: 'cms'
                    delete_after_ack: false
                    auth: 'pa$$word'
                    serializer: !php/const Redis::SERIALIZER_JSON
```

It results to this error:

```
In Connection.php line 510:

  NOAUTH Authentication required.
```

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

Commits
-------

7dfdd383c9 [Messenger] [Redis] Make `auth` option works
2021-07-13 09:25:01 +02:00
.github Merge branch '4.4' into 5.2 2021-07-10 10:11:29 +02:00
src/Symfony [Messenger] [Redis] Make auth option works 2021-07-13 09:24:55 +02:00
.appveyor.yml Merge branch '4.4' into 5.2 2021-06-28 11:07:49 +02:00
.editorconfig Update .editorconfig 2018-09-06 16:22:56 +02:00
.gitattributes "export-ignore" contracts and phpunit-bridge 2021-01-22 10:53:35 +01:00
.gitignore Migrate configuration file for PHP CS Fixer 2.19/3.0 2021-05-15 21:29:53 +02:00
.php-cs-fixer.dist.php Merge branch '4.4' into 5.2 2021-06-30 15:06:15 +02:00
.travis.yml Tweak CI 2021-06-28 11:03:12 +02:00
CHANGELOG-5.0.md Merge branch '5.0' into 5.1 2020-06-15 13:50:15 +02:00
CHANGELOG-5.1.md Update CHANGELOG for 5.1.10 2020-12-18 14:43:18 +01:00
CHANGELOG-5.2.md Update CHANGELOG for 5.2.11 2021-06-30 10:23:19 +02:00
CODE_OF_CONDUCT.md Added the Code of Conduct file 2018-10-10 03:13:30 -07:00
composer.json Merge branch '4.4' into 5.2 2021-05-22 21:53:56 +02:00
CONTRIBUTING.md Mention the community review guide 2016-12-18 22:02:35 +01:00
CONTRIBUTORS.md Update CONTRIBUTORS for 4.4.26 2021-06-30 10:17:21 +02:00
LICENSE Bump license year 2021-01-01 10:24:35 +01:00
link Merge branch '5.1' into 5.2 2020-12-10 20:16:15 +01:00
phpunit sync ./phpunit in all branches 2021-05-27 14:44:44 +02:00
phpunit.xml.dist Merge branch '4.4' into 5.1 2020-11-16 16:58:32 +01:00
psalm.xml Adding a Github action to run Psalm 2021-02-25 17:18:18 +01:00
README.md Update README.md 2021-04-04 16:42:37 +02:00
UPGRADE-5.0.md Merge branch '4.4' into 5.1 2020-12-10 18:44:54 +01:00
UPGRADE-5.1.md Make Mailgun Header compatible with other Bridges 2021-05-22 13:53:20 +02:00
UPGRADE-5.2.md fix markdown markup 2021-07-02 16:57:58 +02:00
UPGRADE-6.0.md Remove notice about reverted behavior 2021-05-26 19:55:59 +02:00

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Symfony is used by thousands of web applications (including BlaBlaCar.com and Spotify.com) and most of the popular PHP projects (including Drupal and Magento).

Installation

Documentation

Community

Contributing

Symfony is an Open Source, community-driven project with thousands of contributors. Join them contributing code or contributing documentation.

Security Issues

If you discover a security vulnerability within Symfony, please follow our disclosure procedure.

About Us

Symfony development is sponsored by SensioLabs, led by the Symfony Core Team and supported by Symfony contributors.