Why not add the support for a customised HTTP client ? Currently, the client internally uses the curl extension into its sendRequest() method and we could add more flexibility by adding the support of a HttpClient interface brought by HTTPlug.
public function __construct(string $url = 'https://pokeapi.co/api/v2/', CacheInterface $cache = null, SerializerInterface $serializer = null, HttpClient $httpClient = null)
Why not add the support for a customised HTTP client ? Currently, the client internally uses the curl extension into its
sendRequest()
method and we could add more flexibility by adding the support of aHttpClient
interface brought by HTTPlug.