ackintosh / ganesha

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

Request to Add FailureDetectorInterface to GuzzleMiddleware in 2.x Version #109

Open fangyuqiang opened 10 months ago

fangyuqiang commented 10 months ago

We are currently using Guzzle for HTTP requests in our project and rely on its middleware functionality. We have noticed that the latest ganesha 3.x version introduced a highly useful feature, which is support for custom error detection functions. However, the 3.x version requires PHP 8 or higher to install, and we are currently running PHP 7.4, which does not support PHP 8 immediately.

We kindly request the author to consider backporting the FailureDetectorInterface to the 2.x version of ganesha . This would greatly benefit users like us who are unable to upgrade to PHP 8 immediately but still want to leverage this feature. It would allow us to enhance our error handling capabilities while maintaining compatibility with our existing PHP version.

Thank you for your attention to this matter, and we appreciate your consideration of our request.