LKDevelopment / hetzner-cloud-php-sdk

A PHP SDK for the Hetzner Cloud API
MIT License
107 stars 52 forks source link

Implement `Model::setHttpClient()` #80

Closed mutec closed 3 years ago

mutec commented 3 years ago

This change is necessary (for us) to strip out the httpClient/Guzzle from the results since we're going to cache them and it causes a lot of unnecessary wasted storage - and can't be serialized: Serialization of 'Closure' is not allowed

LKaemmerling commented 3 years ago

Hey @mutec,

good idea! You should only remember that those cached instances than are not "usable" until you set the client again.