8000 Merge branch '6.3' into 6.4 · symfony/symfony-docs@a45adf1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a45adf1

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [HttpClient] Add a note about requirement to use URI templates
2 parents e530531 + 59ce75f commit a45adf1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

http_client.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,17 @@ a client that eases the use of URI templates, as described in the `RFC 6570`_::
896896
],
897897
]);
898898

899+
Before using URI templates in your applications, you must install a third-party
900+
package that expands those URI templates to turn them into URLs:
901+
902+
.. code-block:: terminal
903+
904+
$ composer require league/uri
905+
906+
# Symfony also supports the following URI template packages:
907+
# composer require guzzlehttp/uri-template
908+
# composer require rize/uri-template
909+
899910
When using this client in the framework context, all existing HTTP clients
900911
are decorated by the :class:`Symfony\\Component\\HttpClient\\UriTemplateHttpClient`.
901912
This means that URI template feature is enabled by default for all HTTP clients

0 commit comments

Comments
 (0)
0