Skip to content

Remove 7.x versionadded directives #21072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 8.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .doctor-rst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,11 @@ rules:
versionadded_directive_should_have_version: ~
yaml_instead_of_yml_suffix: ~

# master
versionadded_directive_major_version:
major_version: 7
major_version: 8

versionadded_directive_min_version:
min_version: '7.0'
min_version: '8.0'

deprecated_directive_major_version:
major_version: 7
Expand Down
12 changes: 0 additions & 12 deletions bundles/prepend_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@ method::

The ``prependExtension()`` method, like ``prepend()``, is called only at compile time.

.. versionadded:: 7.1

Starting from Symfony 7.1, calling the :method:`Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator::import`
method inside ``prependExtension()`` will prepend the given configuration.
In previous Symfony versions, this method appended the configuration.

Alternatively, you can use the ``prepend`` parameter of the
:method:`Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator::extension`
method::
Expand All @@ -209,12 +203,6 @@ method::
}
}

.. versionadded:: 7.1

The ``prepend`` parameter of the
:method:`Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator::extension`
method was added in Symfony 7.1.

More than one Bundle using PrependExtensionInterface
----------------------------------------------------

Expand Down
4 changes: 0 additions & 4 deletions cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ Some of these adapters could be configured via shortcuts.
;
};

.. versionadded:: 7.1

Using a DSN as the provider for the PDO adapter was introduced in Symfony 7.1.

.. _cache-create-pools:

Creating Custom (Namespaced) Pools
Expand Down
10 changes: 0 additions & 10 deletions components/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ generate and return the value::
Creating Sub-Namespaces
-----------------------

.. versionadded:: 7.3

Cache sub-namespaces were introduced in Symfony 7.3.

Sometimes you need to create context-dependent variations of data that should be
cached. For example, the data used to render a dashboard page may be expensive
to generate and unique per user, so you can't cache the same data for everyone.
Expand Down Expand Up @@ -286,12 +282,6 @@ function from the `Igbinary extension`_::

There are other *marshallers* that can encrypt or compress the data before storing it.

.. versionadded:: 7.2

In Symfony versions prior to 7.2, the ``igbinary_serialize()`` function was
used by default when the Igbinary extension was installed. Starting from
Symfony 7.2, you have to enable Igbinary support explicitly.

Advanced Usage
--------------

Expand Down
4 changes: 0 additions & 4 deletions components/cache/adapters/array_cache_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,3 @@ method::
// lifetimes in tests)
$clock = null,
);

.. versionadded:: 7.2

The optional ``$clock`` argument was introduced in Symfony 7.2.
18 changes: 0 additions & 18 deletions components/cache/adapters/redis_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ as the second and third parameters::
?MarshallerInterface $marshaller = null
);

.. versionadded:: 7.3

Support for ``Relay\Cluster`` was introduced in Symfony 7.3.

Configure the Connection
------------------------

Expand All @@ -66,11 +62,6 @@ helper method allows creating and configuring the Redis client class instance us
'redis://localhost'
);

.. versionadded:: 7.3

Starting in Symfony 7.3, when using Valkey servers you can use the
``valkey[s]:`` scheme instead of the ``redis[s]:`` one in your DSNs.

The DSN can specify either an IP/host (and an optional port) or a socket path, as well as a
password and a database index. To enable TLS for connections, the scheme ``redis`` must be
replaced by ``rediss`` (the second ``s`` means "secure").
Expand Down Expand Up @@ -249,15 +240,6 @@ Available Options
],
];

.. versionadded:: 7.1

The option ``sentinel_master`` as an alias for ``redis_sentinel`` was introduced
in Symfony 7.1.

.. versionadded:: 7.3

The ``relay_cluster_context`` option was introduced in Symfony 7.3.

.. note::

When using the `Predis`_ library some additional Predis-specific options are available.
Expand Down
14 changes: 0 additions & 14 deletions components/clock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,6 @@ timestamps::
// (for high precision sub-second datetimes) are also supported
$dateOfFirstMoonLanding = DatePoint::createFromTimestamp(-14182940);

.. versionadded:: 7.1

The ``createFromTimestamp()`` method was introduced in Symfony 7.1.

.. note::

In addition ``DatePoint`` offers stricter return types and provides consistent
Expand All @@ -261,12 +257,6 @@ timestamps::
This feature polyfills PHP 8.4's behavior on the topic, as microseconds manipulation
is not available in previous versions of PHP.

.. versionadded:: 7.1

The :method:`Symfony\\Component\\Clock\\DatePoint::setMicrosecond` and
:method:`Symfony\\Component\\Clock\\DatePoint::getMicrosecond` methods were
introduced in Symfony 7.1.

Storing DatePoints in the Database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand All @@ -293,10 +283,6 @@ If you :doc:`use Doctrine </doctrine>` to work with databases, consider using th
// ...
}

.. versionadded:: 7.3

The ``DatePointType`` was introduced in Symfony 7.3.

.. _clock_writing-tests:

Writing Time-Sensitive Tests
Expand Down
4 changes: 0 additions & 4 deletions components/config/caching.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,3 @@ You can explicitly define the absolute path to the meta file::

// the third optional argument indicates the absolute path to the meta file
$userMatcherCache = new ConfigCache($cachePath, true, '/my/absolute/path/to/cache.meta');

.. versionadded:: 7.1

The argument to customize the meta file path was introduced in Symfony 7.1.
20 changes: 0 additions & 20 deletions components/config/definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ reflect the real structure of the configuration values::
->end()
;

.. versionadded:: 7.2

The ``stringNode()`` method was introduced in Symfony 7.2.

The root node itself is an array node, and has children, like the boolean
node ``auto_connect`` and the scalar node ``default_connection``. In general:
after defining a node, a call to ``end()`` takes you one step up in the
Expand All @@ -120,10 +116,6 @@ node definition. Node types are available for:
and are created with ``node($name, $type)`` or their associated shortcut
``xxxxNode($name)`` method.

.. versionadded:: 7.2

Support for the ``string`` type was introduced in Symfony 7.2.

Numeric Node Constraints
~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -201,10 +193,6 @@ the cases of the enum::
When using a backed enum, the values provided to the node will be cast
to one of the enum cases if possible.

.. versionadded:: 7.3

The ``enumClass()`` method was introduced in Symfony 7.3.

Array Nodes
~~~~~~~~~~~

Expand Down Expand Up @@ -566,10 +554,6 @@ A few placeholders are available to customize the URL:
The placeholders will be replaced when printing the configuration tree with the
``config:dump-reference`` command.

.. versionadded:: 7.3

The ``docUrl()`` method was introduced in Symfony 7.3.

Optional Sections
-----------------

Expand Down Expand Up @@ -877,10 +861,6 @@ A validation rule also requires a "then" part:
Usually, "then" is a closure. Its return value will be used as a new value
for the node, instead of the node's original value.

.. versionadded:: 7.3

The ``ifFalse()`` method was introduced in Symfony 7.3.

Configuring the Node Path Separator
-----------------------------------

Expand Down
4 changes: 0 additions & 4 deletions components/console/helpers/formatterhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ precision (default ``1``) of the result::
Helper::formatTime(172799, 4); // 1 d, 23 h, 59 min, 59 s
Helper::formatTime(172799.056, 5); // 1 d, 23 h, 59 min, 59 s, 56 ms

.. versionadded:: 7.3

Support for formatting up to milliseconds was introduced in Symfony 7.3.

Formatting Memory
-----------------

Expand Down
7 changes: 1 addition & 6 deletions components/console/helpers/progressindicator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Once the progress finishes, it displays a special finished indicator (which defa
to ✔). You can replace it with your own::

$progressIndicator = new ProgressIndicator($output, finishedIndicatorValue: '🎉');

try {
/* do something */
$progressIndicator->finish('Finished');
Expand All @@ -121,11 +121,6 @@ The progress indicator will now look like this:
- Processing...
🎉 Finished

.. versionadded:: 7.2

The ``finishedIndicator`` parameter for the constructor was introduced in Symfony 7.2.
The ``finishedIndicator`` parameter for method ``finish()`` was introduced in Symfony 7.2.

Customize Placeholders
~~~~~~~~~~~~~~~~~~~~~~

Expand Down
4 changes: 0 additions & 4 deletions components/console/helpers/table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,6 @@ This outputs:
| 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
| 80-902734-1-6 | And Then There Were None | Agatha Christie |

.. versionadded:: 7.3

The ``markdown`` style was introduced in Symfony 7.3.

Making a Custom Table Style
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
4 changes: 0 additions & 4 deletions components/console/helpers/tree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ The Tree Helper allows you to build and display tree structures in the console.
It's commonly used to render directory hierarchies, but you can also use it to render
any tree-like content, such us organizational charts, product category trees, taxonomies, etc.

.. versionadded:: 7.3

The ``TreeHelper`` class was introduced in Symfony 7.3.

Rendering a Tree
----------------

Expand Down
4 changes: 0 additions & 4 deletions components/console/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ You can suppress output with:
$ php application.php list --quiet
$ php application.php list -q
.. versionadded:: 7.2

The ``--silent`` option was introduced in Symfony 7.2.

You can get more verbose messages (if this is supported for a command)
with:

Expand Down
4 changes: 0 additions & 4 deletions components/css_selector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ Pseudo-classes are partially supported:
``li:first-of-type``) but not with the ``*`` selector).
* Supported: ``*:only-of-type``, ``*:scope``, ``*:is`` and ``*:where``.

.. versionadded:: 7.1

The support for ``*:is`` and ``*:where`` was introduced in Symfony 7.1.

Learn more
----------

Expand Down
5 changes: 0 additions & 5 deletions components/expression_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,6 @@ This is how you can use these flags::
// does not throw a SyntaxError because the unknown variables and functions are ignored
$expressionLanguage->lint('unknown_var + unknown_function()', [], Parser::IGNORE_UNKNOWN_VARIABLES | Parser::IGNORE_UNKNOWN_FUNCTIONS);

.. versionadded:: 7.1

The support for flags in the ``parse()`` and ``lint()`` methods
was introduced in Symfony 7.1.

Passing in Variables
--------------------

Expand Down
4 changes: 0 additions & 4 deletions components/filesystem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,6 @@ creates them before appending the contents.
``readFile``
~~~~~~~~~~~~

.. versionadded:: 7.1

The ``readFile()`` method was introduced in Symfony 7.1.

:method:`Symfony\\Component\\Filesystem\\Filesystem::readFile` returns all the
contents of a file as a string. Unlike the :phpfunction:`file_get_contents` function
from PHP, it throws an exception when the given file path is not readable and
Expand Down
5 changes: 0 additions & 5 deletions components/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ The following snippet adds CSRF protection to the form factory::
->addExtension(new CsrfExtension($csrfManager))
->getFormFactory();

.. versionadded:: 7.2

Support for passing requests to the constructor of the ``RequestStack``
class was introduced in Symfony 7.2.

Internally, this extension will automatically add a hidden field to every
form (called ``_token`` by default) whose value is automatically generated by
the CSRF generator and validated when binding the form.
Expand Down
19 changes: 0 additions & 19 deletions components/http_foundation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,6 @@ anonymized depending on the IP address format::
$anonymousIpv6 = IpUtils::anonymize($ipv6, 3, 10);
// $anonymousIpv6 = '2a01:198:603::'

.. versionadded:: 7.2

The ``v4Bytes`` and ``v6Bytes`` parameters of the ``anonymize()`` method
were introduced in Symfony 7.2.

Check If an IP Belongs to a CIDR Subnet
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -459,11 +454,6 @@ You can use them individually or combine them using the
// ...
}

.. versionadded:: 7.1

The ``HeaderRequestMatcher`` and ``QueryParameterRequestMatcher`` were
introduced in Symfony 7.1.

Accessing other Data
~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -721,10 +711,6 @@ a PHP callable::
// disables FastCGI buffering in nginx only for this response
$response->headers->set('X-Accel-Buffering', 'no');

.. versionadded:: 7.3

Support for using string iterables was introduced in Symfony 7.3.

Streaming a JSON Response
~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -906,11 +892,6 @@ and that will be automatically deleted after the response is sent::

$response = new BinaryFileResponse($file);

.. versionadded:: 7.1

The support for ``\SplTempFileObject`` in ``BinaryFileResponse``
was introduced in Symfony 7.1.

If the size of the served file is unknown (e.g. because it's being generated on the fly,
or because a PHP stream filter is registered on it, etc.), you can pass a ``Stream``
instance to ``BinaryFileResponse``. This will disable ``Range`` and ``Content-Length``
Expand Down
6 changes: 0 additions & 6 deletions components/http_kernel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,6 @@ The :class:`Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent` exposes the
method, which you can use to determine if the kernel is currently terminating
at the moment the exception was thrown.

.. versionadded:: 7.1

The
:method:`Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent::isKernelTerminating`
method was introduced in Symfony 7.1.

.. note::

When setting a response for the ``kernel.exception`` event, the propagation
Expand Down
Loading