Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e43b5c

Browse files
committed
Merge branch '4.4'
* 4.4: fix(DI): service name
2 parents 488cc66 + 7c95255 commit 9e43b5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/http_client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,11 +479,11 @@ has a unique service named after its configuration.
479479
# ...
480480
481481
# whenever a service type-hints HttpClientInterface, inject the GitHub client
482-
Symfony\Contracts\HttpClient\HttpClientInterface: '@api_client.github'
482+
Symfony\Contracts\HttpClient\HttpClientInterface: '@some_api.client'
483483
484484
# inject the HTTP client called 'crawler' into this argument of this service
485485
App\Some\Service:
486-
$someArgument: '@http_client.crawler'
486+
$someArgument: '@crawler.client'
487487
488488
Testing HTTP Clients and Responses
489489
----------------------------------

0 commit comments

Comments
 (0)