Skip to content

Commit 0f4f64e

Browse files
authored
fix(DI): service name
1 parent 524881b commit 0f4f64e

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
@@ -483,11 +483,11 @@ has a unique service named after its configuration.
483483
# ...
484484
485485
# whenever a service type-hints HttpClientInterface, inject the GitHub client
486-
Symfony\Contracts\HttpClient\HttpClientInterface: '@api_client.github'
486+
Symfony\Contracts\HttpClient\HttpClientInterface: '@some_api.client'
487487
488488
# inject the HTTP client called 'crawler' into this argument of this service
489489
App\Some\Service:
490-
$someArgument: '@http_client.crawler'
490+
$someArgument: '@crawler.client'
491491
492492
Testing HTTP Clients and Responses
493493
----------------------------------

0 commit comments

Comments
 (0)