Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #41616 [Messenger] Remove TLS related options when not using TLS …
…(odolbeau) This PR was merged into the 5.2 branch. Discussion ---------- [Messenger] Remove TLS related options when not using TLS | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | not really | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Remove TLS related options when not using TLS to connect to a broker. The goal is to be able to use the same configuration for both `amqp://` & `amqps://` DSN. Currently, when using a configuration containing a `cacert` key with a non-TLS DSN will throw a `AMQPConnectionException` (Socket error: could not connect to host.) Configuration example: ```yaml framework: messenger: transports: async: dsn: '%env(MESSENGER_TRANSPORT_DSN)%' options: cacert: '%kernel.project_dir%/amqp_cacert.pem' ``` Commits ------- 37e602d Remove TLS related options when not using TLS
- Loading branch information