10000 Reword · symfony/symfony-docs@59ce75f · GitHub
[go: up one dir, main page]

Skip to content

Commit 59ce75f

Browse files
committed
Reword
1 parent 56a41b3 commit 59ce75f<
10000
/span>

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

http_client.rst

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,17 @@ a client that eases the use of URI templates, as described in the `RFC 6570`_::
891891
],
892892
]);
893893

894+
Before using URI templates in your applications, you must install a third-party
895+
package that expands those URI templates to turn them into URLs:
896+
897+
.. code-block:: terminal
898+
899+
$ composer require league/uri
900+
901+
# Symfony also supports the following URI template packages:
902+
# composer require guzzlehttp/uri-template
903+
# composer require rize/uri-template
904+
894905
When using this client in the framework context, all existing HTTP clients
895906
are decorated by the :class:`Symfony\\Component\\HttpClient\\UriTemplateHttpClient`.
896907
This means that URI template feature is enabled by default for all HTTP clients
@@ -946,11 +957,6 @@ If you want to define your own logic to handle variables of URI templates, you
946957
can do so by redefining the ``http_client.uri_template_expander`` alias. Your
947958
service must be invokable.
948959

949-
.. note::
950-
951-
Support for URI template requires a vendor or to pass your own expander
952-
``\Closure`` implementation to expand the URI.
953-
954960
.. versionadded:: 6.3
955961

956962
The :class:`Symfony\\Component\\HttpClient\\UriTemplateHttpClient` was

0 commit comments

Comments
 (0)
0