From 56d1512aaa06bc9fba4ffe6209147e72f04b5cc7 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 4 Jun 2025 13:08:36 +0200 Subject: [PATCH] [HttpClient] Mention the merging of custom options and default scoped options --- http_client.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/http_client.rst b/http_client.rst index e2b0b4f41bf..15a3a9ef8a8 100644 --- a/http_client.rst +++ b/http_client.rst @@ -334,6 +334,12 @@ autoconfigure the HTTP client based on the requested URL: You can define several scopes, so that each set of options is added only if a requested URL matches one of the regular expressions set by the ``scope`` option. +.. note:: + + The options passed to the ``request()`` method are merged with the default + options defined in the scoped client. The options passed to ``request()`` + take precedence and override or extend the default ones. + If you use scoped clients in the Symfony framework, you must use any of the methods defined by Symfony to :ref:`choose a specific service `. Each client has a unique service named after its configuration.