From a6b13d8eb4f338eaa01b0415f5999d0504fcc16d Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 29 Sep 2025 13:28:03 +0200 Subject: [PATCH] clean up 7.4 versionadded directives --- components/config/definition.rst | 6 ------ components/runtime.rst | 4 ---- console.rst | 5 ----- lock.rst | 5 ----- object_mapper.rst | 4 ---- reference/configuration/framework.rst | 5 ----- reference/constraints/Url.rst | 4 ---- service_container/service_decoration.rst | 5 ----- 8 files changed, 38 deletions(-) diff --git a/components/config/definition.rst b/components/config/definition.rst index 593efd0f3c5..41833d1cb17 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -743,12 +743,6 @@ of the option name using the second argument of the ``arrayNode()`` method:: ->end() ; -.. versionadded:: 7.4 - - The second argument of ``arrayNode()`` was introduced in Symfony 7.4. In prior - Symfony versions, you had to define the singular variant using the ``fixXmlConfig()`` - method on the root node (``$rootNode->fixXmlConfig('extension')``). - This ensures that single XML elements are still turned into an array. So you may have: .. code-block:: xml diff --git a/components/runtime.rst b/components/runtime.rst index b401127eab9..15b8724cddf 100644 --- a/components/runtime.rst +++ b/components/runtime.rst @@ -315,10 +315,6 @@ or a JSON encoded string:: // ... -.. versionadded:: 7.4 - - The support for JSON contents in ``APP_RUNTIME_OPTIONS`` was introduced in Symfony 7.4. - You can also configure ``extra.runtime`` in ``composer.json``: .. code-block:: json diff --git a/console.rst b/console.rst index 3235fe0aed1..69285ac078c 100644 --- a/console.rst +++ b/console.rst @@ -167,11 +167,6 @@ longer help text for the command:: } } -.. versionadded:: 7.4 - - The feature to define usage examples in the ``#[AsCommand]`` attribute was - introduced in Symfony 7.4. - Additionally, you can extend the :class:`Symfony\\Component\\Console\\Command\\Command` class to leverage advanced features like lifecycle hooks (e.g. :method:`Symfony\\Component\\Console\\Command\\Command::initialize` and and :method:`Symfony\\Component\\Console\\Command\\Command::interact`):: diff --git a/lock.rst b/lock.rst index 9544354255f..90881aa05fa 100644 --- a/lock.rst +++ b/lock.rst @@ -330,8 +330,3 @@ For example, to select the ``invoice`` lock defined earlier:: // ... } } - -.. versionadded:: 7.4 - - Before Symfony 7.4, the target name had to include the ``.lock.factory`` - suffix (e.g. ``#[Target('invoice.lock.factory')]``). diff --git a/object_mapper.rst b/object_mapper.rst index 748c300f88c..7e23e120995 100644 --- a/object_mapper.rst +++ b/object_mapper.rst @@ -447,10 +447,6 @@ With this configuration, ObjectMapper maps each item in the ``products`` array according to the usual mapping rules. Without ``transform: new MapCollection()``, the array is left unchanged. -.. versionadded:: 7.4 - - The ``MapCollection`` transformer was introduced in Symfony 7.4. - Mapping Multiple Targets ------------------------ diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 30c81dc82f9..f221a47871f 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -279,11 +279,6 @@ For example, to select the ``foo_package`` package defined earlier:: } } -.. versionadded:: 7.4 - - Before Symfony 7.4, the target name had to include the ``.package`` - suffix (e.g. ``#[Target('foo_package.package')]``). - .. _reference-framework-assets-packages: packages diff --git a/reference/constraints/Url.rst b/reference/constraints/Url.rst index 57997865763..3891ce5586c 100644 --- a/reference/constraints/Url.rst +++ b/reference/constraints/Url.rst @@ -243,10 +243,6 @@ The value of this option can also be an asterisk (``*``) to allow all protocols: // (e.g. 'https://', 'git+ssh://', 'file://', 'custom://') protocols: '*' -.. versionadded:: 7.4 - - Support for ``*`` in the ``protocols`` option was introduced in Symfony 7.4. - ``relativeProtocol`` ~~~~~~~~~~~~~~~~~~~~ diff --git a/service_container/service_decoration.rst b/service_container/service_decoration.rst index 478691f4b3c..f8560c59a0d 100644 --- a/service_container/service_decoration.rst +++ b/service_container/service_decoration.rst @@ -128,11 +128,6 @@ but keeps a reference of the old one as ``.inner``: You can apply multiple ``#[AsDecorator]`` attributes to the same class to decorate multiple services with it. - .. versionadded:: 7.4 - - The possibility to allow multiple ``#[AsDecorator]`` attributes was - introduced in Symfony 7.4. - The ``decorates`` option tells the container that the ``App\DecoratingMailer`` service replaces the ``App\Mailer`` service. If you're using the :ref:`default services.yaml configuration `,