Skip to content

Conversation

@mackieee
Copy link

For Local development where I needed to ignore self-signed certificate errors on send() - required the change of a protected property post-manager initialisation.

$manager->setHttpClientConfig([ "verify" => false ]);

Provide method to programmatically set Guzzle Client Options prior to transport.
@tiamo
Copy link
Owner

tiamo commented Jun 22, 2021

Hi @mackieee, Why not use this?

$manager = new Management(['client_config' => ['verify' => false]])

@mackieee
Copy link
Author

Hi @mackieee, Why not use this?

$manager = new Management(['client_config' => ['verify' => false]])

My thinking was that as I create the $manager as a singleton instance in my controller - subsquent calls may need new settings. However I realise that's an unrealistic use-case :)

@mackieee mackieee closed this Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants