From 40c513d61193e8679cfe472a6a8a6de464bcf1d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Michelet?= Date: Mon, 3 Jul 2023 08:41:48 +0200 Subject: [PATCH] [HttpClient] Add a note about requirement to use URI templates Closes https://github.com/symfony/symfony-docs/issues/18480 --- http_client.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/http_client.rst b/http_client.rst index 5f7f51f8a6a..3fe7f3864ed 100644 --- a/http_client.rst +++ b/http_client.rst @@ -946,6 +946,11 @@ If you want to define your own logic to handle variables of URI templates, you can do so by redefining the ``http_client.uri_template_expander`` alias. Your service must be invokable. +.. note:: + + Support for URI template requires a vendor or to pass your own expander + ``\Closure`` implementation to expand the URI. + .. versionadded:: 6.3 The :class:`Symfony\\Component\\HttpClient\\UriTemplateHttpClient` was