Skip to content

Commit 685afe1

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [HttpClient] Add a note about requirement to use URI templates
2 parents 99c56e1 + a45adf1 commit 685afe1

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)