Closed GeorgII-web closed 1 year ago
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This PR was closed because it has been stalled for 10 days with no activity.
What: Fix for dynamic using of
ssl_context => verify_peer
option. In my case it was Local\AWS environment and there was no option to use one yml config for both environments.How to reproduce: On using custom class for an option
connection_parameters_provider: App\Service\ConnectionParametersProviderService
I'm deciding to use or not SSLBut
RabbitMq/AMQPConnectionFactory.php
tries to create stream context for SSL options before it gets it from custom Connection parameters from users class, and there is no stream context for it.In total, parameters looks like (invalid):
instead of (valid):
The fix: Change the order of getting an
user parameters
and creating astream context