diff --git a/config/services.yaml b/config/services.yaml index cebdc53..b312119 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -20,5 +20,15 @@ services: App\: resource: '../src/' + app.http_client.tmdb: + class: Symfony\Component\HttpClient\RetryableHttpClient + arguments: + $client: '@http_client' + $maxRetries: 3 + + App\Gateway\TMDBGateway: + arguments: + $client: '@app.http_client.tmdb' + # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones