From 0f4f64effea4e991e1b532f9c9a6d5dcb3a72f60 Mon Sep 17 00:00:00 2001 From: Loulier Guillaume Date: Mon, 3 Jun 2019 08:30:52 +0200 Subject: [PATCH] fix(DI): service name --- components/http_client.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/http_client.rst b/components/http_client.rst index 55fe4f530df..9b05b30d677 100644 --- a/components/http_client.rst +++ b/components/http_client.rst @@ -483,11 +483,11 @@ has a unique service named after its configuration. # ... # whenever a service type-hints HttpClientInterface, inject the GitHub client - Symfony\Contracts\HttpClient\HttpClientInterface: '@api_client.github' + Symfony\Contracts\HttpClient\HttpClientInterface: '@some_api.client' # inject the HTTP client called 'crawler' into this argument of this service App\Some\Service: - $someArgument: '@http_client.crawler' + $someArgument: '@crawler.client' Testing HTTP Clients and Responses ----------------------------------