I'm trying to implement async HTTP client with Symfony and amphp/http-client, in symfony docs said thatto enable it for HTTP I need to add http_version: '2.0'option to config and I did it:
framework:
http_client:
http_version: '2.0'
scoped_clients:
site:
base_uri: '%env(URL)%'
headers:
x-access-token: '%env(ACCESS_TOKEN)%'
but it's not working and I'm getting error Unrecognized option "http_version" under "framework.http_client". Available options are "default_options", "enabled", "max_host_connections", "mock_response_factory", "scoped_clients".
Any idea what is wrong?? Thanks in advance!