Closed fliespl closed 4 years ago
You can just extend the LKDev\HetznerCloud\Clients\GuzzleClient client.
I can, but I can't change basic Guzzle Config, since your __construct is not approving any arguments and doesn't pass it to options.
There is no way to add 'http_errors' => false by extending GuzzleClient.
Got the problem. The constructor of the Network Model has the wrong type.
Currently models (Network, Subnet) expect to receive GuzzleClient class, which is just used to setup Guzzle\Client using construct. It doesn't have any additional method.
It's making it impossible to use own implementation of a client.
In my case I wanted to add Client which doesn't throw on http_errors:
Unfortunately it will fail: