You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your \maxh\Nominatim\Nominatim constructor, you accept a custom Guzzle Client instance, which is really fine. But would it perhaps not be prudent to accept \GuzzleHttp\ClientInterface or \Psr\Http\Client\ClientInterface as argument?
If so, the your component's flexibility will increase, by allowing developers to provide custom http client implementations.
This feature request can be considered somewhat breaking. So, if you accept it, then it should be for your next major version.
The text was updated successfully, but these errors were encountered:
Indeed, this could be great.
We can event avoid breaking something by blocking Guzzle versions below 7.0 since \Guzzlient\Client implement \Psr\Http\Client\ClientInterface.
It's been a while since I worked on this project, here is some other idea that could be done :
As for you additional idea to remove $application_url juggling; I think you are right, it could simplify the constructor logic. However, that will become a breaking change, if your code adheres to semver 2. (You can always release a new major version - its all good for me).
Hi
In your
\maxh\Nominatim\Nominatim
constructor, you accept a custom Guzzle Client instance, which is really fine. But would it perhaps not be prudent to accept\GuzzleHttp\ClientInterface
or\Psr\Http\Client\ClientInterface
as argument?If so, the your component's flexibility will increase, by allowing developers to provide custom http client implementations.
This feature request can be considered somewhat breaking. So, if you accept it, then it should be for your next major version.
The text was updated successfully, but these errors were encountered: