From df5edb0909e45fb39096b5323bf47367785ebc6d Mon Sep 17 00:00:00 2001 From: Matthieu Lempereur Date: Wed, 22 Nov 2023 19:31:49 +0100 Subject: [PATCH 1/6] add links label in service container page --- service_container.rst | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/service_container.rst b/service_container.rst index fa3681e06f9..0bfa4dd6f58 100644 --- a/service_container.rst +++ b/service_container.rst @@ -82,8 +82,8 @@ in the container. There are actually *many* more services in the container, and each service has a unique id in the container, like ``request_stack`` or ``router.default``. For a full list, you can run ``php bin/console debug:container``. But most of the time, - you won't need to worry about this. See :ref:`services-wire-specific-service`. - See :doc:`/service_container/debug`. + you won't need to worry about this. See :ref:`how to choose a specific service + `. See :doc:`/service_container/debug`. .. _service-container-creating-service: @@ -230,10 +230,11 @@ each time you ask for it. Thanks to this configuration, you can automatically use any classes from the ``src/`` directory as a service, without needing to manually configure - it. Later, you'll learn more about this in :ref:`service-psr4-loader`. + it. Later, you'll learn how to :ref:`import many services at once + ` with resource. - If you'd prefer to manually wire your service, that's totally possible: see - :ref:`services-explicitly-configure-wire-services`. + If you'd prefer to manually wire your service, that's totally possible to + :ref:`use explicit configuration `. .. _service-container_limiting-to-env: @@ -840,8 +841,8 @@ argument for *any* service defined in this file! You can bind arguments by name (e.g. ``$adminEmail``), by type (e.g. ``Psr\Log\LoggerInterface``) or both (e.g. ``Psr\Log\LoggerInterface $requestLogger``). -The ``bind`` config can also be applied to specific services or when loading many -services at once (i.e. :ref:`service-psr4-loader`). +The ``bind`` config can also be applied to specific services or when +:ref:`loading many services at once `). Abstract Service Arguments -------------------------- @@ -1091,9 +1092,9 @@ key. For example, the default Symfony configuration contains this: This can be used to quickly make many classes available as services and apply some default configuration. The ``id`` of each service is its fully-qualified class name. You can override any service that's imported by using its id (class name) below -(e.g. see :ref:`services-manually-wire-args`). If you override a service, none of -the options (e.g. ``public``) are inherited from the import (but the overridden -service *does* still inherit from ``_defaults``). +(e.g. see :ref:`how to manually wire arguments `). +If you override a service, none of the options (e.g. ``public``) are inherited +from the import (but the overridden service *does* still inherit from ``_defaults``). You can also ``exclude`` certain paths. This is optional, but will slightly increase performance in the ``dev`` environment: excluded paths are not tracked and so modifying From 87d6c7ce684693a1d1daa93415e360a434aaa95a Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 23 Nov 2023 01:05:48 +0100 Subject: [PATCH 2/6] Update license.rst --- contributing/code/license.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributing/code/license.rst b/contributing/code/license.rst index 8f0ff3f6501..0a4eaafce0d 100644 --- a/contributing/code/license.rst +++ b/contributing/code/license.rst @@ -5,7 +5,7 @@ Symfony Code License Symfony code is released under `the MIT license`_: -Copyright (c) 2004-2021 Fabien Potencier +Copyright (c) 2004-present Fabien Potencier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From b4b65d76846908281c17fe3f400fb925c8bb55b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristijan=20Stipi=C4=87?= Date: Wed, 22 Nov 2023 14:46:04 +0100 Subject: [PATCH 3/6] [HttpClient] Symfony HTTP Client documentation --- http_client.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/http_client.rst b/http_client.rst index 13c520217de..79be1807b57 100644 --- a/http_client.rst +++ b/http_client.rst @@ -1049,7 +1049,11 @@ If the server does respond with a gzipped response, it's decoded transparently. To disable HTTP compression, send an ``Accept-Encoding: identity`` HTTP header. Chunked transfer encoding is enabled automatically if both your PHP runtime and -the remote server supports it. +the remote server support it. + +.. caution:: + + If you set `Accept-Encoding` to e.g. `gzip`, you will need to handle the decompression yourself. HTTP/2 Support ~~~~~~~~~~~~~~ From 7ded54a59bfdde96adcc3cb8dd8ad814335ddd78 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 23 Nov 2023 09:55:23 +0100 Subject: [PATCH 4/6] Tweak --- http_client.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http_client.rst b/http_client.rst index 79be1807b57..ebdef7fb7d3 100644 --- a/http_client.rst +++ b/http_client.rst @@ -1053,7 +1053,8 @@ the remote server support it. .. caution:: - If you set `Accept-Encoding` to e.g. `gzip`, you will need to handle the decompression yourself. + If you set ``Accept-Encoding`` to e.g. ``gzip``, you will need to handle the + decompression yourself. HTTP/2 Support ~~~~~~~~~~~~~~ From 7047b7964057a78550dae016604c3dda2a95e6b7 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 23 Nov 2023 10:00:39 +0100 Subject: [PATCH 5/6] Tweak --- service_container.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_container.rst b/service_container.rst index 0bfa4dd6f58..ea341c124d6 100644 --- a/service_container.rst +++ b/service_container.rst @@ -233,7 +233,7 @@ each time you ask for it. it. Later, you'll learn how to :ref:`import many services at once ` with resource. - If you'd prefer to manually wire your service, that's totally possible to + If you'd prefer to manually wire your service, you can :ref:`use explicit configuration `. .. _service-container_limiting-to-env: From 3726dda85d8836fe9986d08c3caabf2ca56effa6 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 22 Nov 2023 19:09:02 +0100 Subject: [PATCH 6/6] Remove "--unpack" option from setup.rst --- setup.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.rst b/setup.rst index 55499fed87f..ea4c6cdc7f9 100644 --- a/setup.rst +++ b/setup.rst @@ -219,8 +219,7 @@ which in turn installs several packages like ``symfony/debug-bundle``, You won't see the ``symfony/debug-pack`` dependency in your ``composer.json``, as Flex automatically unpacks the pack. This means that it only adds the real packages as dependencies (e.g. you will see a new ``symfony/var-dumper`` in -``require-dev``). While it is not recommended, you can use the ``composer -require --no-unpack ...`` option to disable unpacking. +``require-dev``). .. _security-checker: