From bc5a23377f8e605735969a5153c790fa00169a3b Mon Sep 17 00:00:00 2001 From: Mathieu Lechat Date: Sat, 18 Jun 2022 21:35:57 +0200 Subject: [PATCH 1/4] [HttpClient] Mention `extra.trace_content` option --- http_client.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/http_client.rst b/http_client.rst index 8123c081aa7..1d84c059e1f 100644 --- a/http_client.rst +++ b/http_client.rst @@ -814,6 +814,25 @@ ensure local networks are made inaccessible to the HTTP client:: // but all the other requests, including other internal networks, will be allowed $client = new NoPrivateNetworkHttpClient(HttpClient::create(), ['104.26.14.0/23']); +Profiling +~~~~~~~~~ + +When you are using the :class:`Symfony\\Component\\HttpClient\\TraceableHttpClient`, +responses content will be kept in memory and may exhaust it. + +You can disable this behavior by setting the ``extra.trace_content`` option to ``false`` +in your requests:: + + $response = $client->request('GET', 'https://...', [ + 'extra' => ['trace_content' => false], + ]); + +This setting won’t affect other clients. + +.. versionadded:: 5.2 + + The ``extra.trace_content`` option was introduced in Symfony 5.2. + Performance ----------- From 515203d142c60b3b2bb846ae5fc8ff1109958601 Mon Sep 17 00:00:00 2001 From: Cyril VERLOOP Date: Thu, 23 Jun 2022 11:31:25 +0200 Subject: [PATCH 2/4] Updating ICU documentation link. --- reference/constraints/Locale.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/constraints/Locale.rst b/reference/constraints/Locale.rst index c61b12187b7..85fc8ee25d2 100644 --- a/reference/constraints/Locale.rst +++ b/reference/constraints/Locale.rst @@ -128,6 +128,6 @@ Parameter Description .. include:: /reference/constraints/_payload-option.rst.inc -.. _`ICU format locale IDs`: http://userguide.icu-project.org/locale +.. _`ICU format locale IDs`: https://unicode-org.github.io/icu/userguide/locale/ .. _`ISO 639-1`: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes .. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes From 1f0a475df80ad49a4825ad518d08807aac61b7c4 Mon Sep 17 00:00:00 2001 From: Maxime Pinot Date: Tue, 21 Jun 2022 16:17:17 +0200 Subject: [PATCH 3/4] [Testing] [PHPUnit Bridge] Fix link text --- components/phpunit_bridge.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index a6722b417f3..83483081451 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -48,7 +48,7 @@ Installation always use its very latest stable major version to get the most accurate deprecation report. -If you plan to :ref:`write-assertions-about-deprecations` and use the regular +If you plan to :ref:`write assertions about deprecations ` and use the regular PHPUnit script (not the modified PHPUnit script provided by Symfony), you have to register a new `test listener`_ called ``SymfonyTestsListener``: From 44bc6c38f67c489a1431e5bf2938811d163656a9 Mon Sep 17 00:00:00 2001 From: Peter Date: Sat, 18 Jun 2022 10:38:42 +0100 Subject: [PATCH 4/4] Adding single quotes around version param Adding single quotes around version param as otherwise getting this in zsh on MBP: peter@Peters-MacBook-Pro-3 Projects % symfony new my_project_directory --version=6.0.* --webapp zsh: no matches found: --version=6.0.* --- setup.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.rst b/setup.rst index 64e4faf5f94..e0b755c382c 100644 --- a/setup.rst +++ b/setup.rst @@ -49,10 +49,10 @@ application: .. code-block:: terminal # run this if you are building a traditional web application - $ symfony new my_project_directory --version=6.0.* --webapp + $ symfony new my_project_directory --version='6.0.*' --webapp # run this if you are building a microservice, console application or API - $ symfony new my_project_directory --version=6.0.* + $ symfony new my_project_directory --version='6.0.*' The only difference between these two commands is the number of packages installed by default. The ``--webapp`` option installs all the packages that you @@ -273,7 +273,7 @@ stable version. If you want to use an LTS version, add the ``--version`` option: $ symfony new my_project_directory --version=next # you can also select an exact specific Symfony version - $ symfony new my_project_directory --version=5.4.* + $ symfony new my_project_directory --version='5.4.*' The ``lts`` and ``next`` shortcuts are only available when using Symfony to create new projects. If you use Composer, you need to tell the exact version: