diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 0e501893e8c..a4e1f056867 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``: diff --git a/http_client.rst b/http_client.rst index 332e2ccd6e3..f0800d22cb5 100644 --- a/http_client.rst +++ b/http_client.rst @@ -798,6 +798,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 ----------- diff --git a/reference/constraints/Locale.rst b/reference/constraints/Locale.rst index 0292c25bcb4..7df56e456cf 100644 --- a/reference/constraints/Locale.rst +++ b/reference/constraints/Locale.rst @@ -124,6 +124,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 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: