CMS 6: Remove explicit dependency for Guzzle - use php-http/discovery
instead.
#200
Labels
Milestone
php-http/discovery
instead.
#200
Currently some of our modules have guzzle as an explicit dependency.
We should use
php-http/discovery
instead, which allows developers to use whichever PSR18-compatible library they want.See https://docs.php-http.org/en/latest/discovery.html#using-discovery-in-a-shared-library which explains how to set this up, and some of the features such as automatically installing a compatible PSR18 library if one is not explicitly declared, and using
Psr18Client
as the runtime class which internally "will use whatever PSR-7, PSR-17 and PSR-18 implementations your users have installed."Useful links
Acceptance criteria
The text was updated successfully, but these errors were encountered: