ackintosh / ganesha

:elephant: A Circuit Breaker pattern implementation for PHP applications.
https://ackintosh.github.io/ganesha/
MIT License
585 stars 42 forks source link

Symfony HTTPClient ServiceNameExtractor doesn't support base_uri #101

Open cjunge opened 1 year ago

cjunge commented 1 year ago

When extracting the service name from the URL, the ServiceNameExtractor doesn't use the base_uri option that is provided by the HTTPClient, and used with ScopedClients.

An InvalidArgumentException is thrown with the message Malformed URL "[url]".

Ackintosh\Ganesha\HttpClient\HostTrait:12