在我的 Symfony 5.1 应用程序中,我使用了几个作用域 http 客户端,在我的 framework.yaml 中定义:
framework:
http_client:
scoped_clients:
my_client:
....
example_client:
base_uri: 'https://example.com/...'
headers:
Accept: 'application/json'
Connection: 'keep-alive'
....
如何配置 symfony 以将 CurlHttpClient 用于“my_client”,将 NativeHttpClient 用于“example_client”?