@@ -212,7 +212,7 @@ autoconfigure the HTTP client based on the requested URL:
212
212
http_client :
213
213
scoped_clients :
214
214
# only requests matching scope will use these options
215
- github :
215
+ github.client :
216
216
scope : ' https://api\.github\.com'
217
217
headers :
218
218
Accept : ' application/vnd.github.v3+json'
@@ -221,7 +221,7 @@ autoconfigure the HTTP client based on the requested URL:
221
221
222
222
# using base_uri, relative URLs (e.g. request("GET", "/repos/symfony/symfony-docs"))
223
223
# will default to these options
224
- github :
224
+ github.client :
225
225
base_uri : ' https://api.github.com'
226
226
headers :
227
227
Accept : ' application/vnd.github.v3+json'
@@ -242,7 +242,7 @@ autoconfigure the HTTP client based on the requested URL:
242
242
<framework : config >
243
243
<framework : http-client >
244
244
<!-- only requests matching scope will use these options -->
245
- <framework : scoped-client name =" github"
245
+ <framework : scoped-client name =" github.client "
246
246
scope =" https://api\.github\.com"
247
247
>
248
248
<framework : header name =" Accept" >application/vnd.github.v3+json</framework : header >
@@ -251,7 +251,7 @@ autoconfigure the HTTP client based on the requested URL:
251
251
252
252
<!-- using base-uri, relative URLs (e.g. request("GET", "/repos/symfony/symfony-docs"))
253
253
will default to these options -->
254
- <framework : scoped-client name =" github"
254
+ <framework : scoped-client name =" github.client "
255
255
base-uri =" https://api.github.com"
256
256
>
257
257
<framework : header name =" Accept" >application/vnd.github.v3+json</framework : header >
@@ -268,7 +268,7 @@ autoconfigure the HTTP client based on the requested URL:
268
268
'http_client' => [
269
269
'scoped_clients' => [
270
270
// only requests matching scope will use these options
271
- 'github' => [
271
+ 'github.client ' => [
272
272
'scope' => 'https://api\.github\.com',
273
273
'headers' => [
274
274
'Accept' => 'application/vnd.github.v3+json',
@@ -279,7 +279,7 @@ autoconfigure the HTTP client based on the requested URL:
279
279
280
280
// using base_url, relative URLs (e.g. request("GET", "/repos/symfony/symfony-docs"))
281
281
// will default to these options
282
- 'github' => [
282
+ 'github.client ' => [
283
283
'base_uri' => 'https://api.github.com',
284
284
'headers' => [
285
285
'Accept' => 'application/vnd.github.v3+json',
@@ -326,8 +326,8 @@ Each client has a unique service named after its configuration.
326
326
327
327
Each scoped client also defines a corresponding named autowiring alias.
328
328
If you use for example
329
- ``Symfony\Contracts\HttpClient\HttpClientInterface $myApiClient ``
330
- as the type and name of an argument, autowiring will inject the ``my_api .client ``
329
+ ``Symfony\Contracts\HttpClient\HttpClientInterface $githubClient ``
330
+ as the type and name of an argument, autowiring will inject the ``github .client ``
331
331
service into your autowired classes.
332
332
333
333
.. note ::
0 commit comments