Skip to content

Remove all 6.x versionadded on 7.0 #18449

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

Merged
merged 1 commit into from
Oct 16, 2023
Merged
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
8 changes: 4 additions & 4 deletions .doctor-rst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ rules:

# master
versionadded_directive_major_version:
major_version: 6
major_version: 7

versionadded_directive_min_version:
min_version: '6.0'
min_version: '7.0'

deprecated_directive_major_version:
major_version: 6
major_version: 7

deprecated_directive_min_version:
min_version: '6.0'
min_version: '7.0'

exclude_rule_for_file:
- path: configuration/multiple_kernels.rst
Expand Down
5 changes: 0 additions & 5 deletions bundles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ Start by creating a new class called ``AcmeTestBundle``::
{
}

.. versionadded:: 6.1

The :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle` was
introduced in Symfony 6.1.

.. caution::

If your bundle must be compatible with previous Symfony versions you have to
Expand Down
4 changes: 0 additions & 4 deletions bundles/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,6 @@ In your extension, you can load this and dynamically set its arguments::
Using the AbstractBundle Class
------------------------------

.. versionadded:: 6.1

The ``AbstractBundle`` class was introduced in Symfony 6.1.

As an alternative, instead of creating an extension and configuration class as
shown in the previous section, you can also extend
:class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle` to add this
Expand Down
4 changes: 0 additions & 4 deletions bundles/extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ To read more about it, see the ":doc:`/bundles/configuration`" article.
Loading Services directly in your Bundle class
----------------------------------------------

.. versionadded:: 6.1

The ``AbstractBundle`` class was introduced in Symfony 6.1.

Alternatively, you can define and load services configuration directly in a
bundle class instead of creating a specific ``Extension`` class. You can do
this by extending from :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle`
Expand Down
4 changes: 0 additions & 4 deletions bundles/prepend_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ registered and the ``entity_manager_name`` setting for ``acme_hello`` is set to
Prepending Extension in the Bundle Class
----------------------------------------

.. versionadded:: 6.1

The ``AbstractBundle`` class was introduced in Symfony 6.1.

You can also append or prepend extension configuration directly in your
Bundle class if you extend from the :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle`
class and define the :method:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle::prependExtension`
Expand Down
12 changes: 0 additions & 12 deletions cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -745,20 +745,12 @@ Clear all cache pools:
$ php bin/console cache:pool:clear --all
.. versionadded:: 6.3

The ``--all`` option was introduced in Symfony 6.3.

Clear all cache pools except some:

.. code-block:: terminal
$ php bin/console cache:pool:clear --all --exclude=my_cache_pool --exclude=another_cache_pool
.. versionadded:: 6.4

The ``--exclude`` option was introduced in Symfony 6.4.

Clear all caches everywhere:

.. code-block:: terminal
Expand All @@ -767,10 +759,6 @@ Clear all caches everywhere:
Clear cache by tag(s):

.. versionadded:: 6.1

The ``cache:pool:invalidate-tags`` command was introduced in Symfony 6.1.

.. code-block:: terminal
# invalidate tag1 from all taggable pools
Expand Down
8 changes: 0 additions & 8 deletions components/browser_kit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ on a link::
// ... and `clickLink()`
$crawler = $client->clickLink('Go elsewhere...', ['X-Custom-Header' => 'Some data']);

.. versionadded:: 6.4

The ``serverParameters`` parameter was introduced in Symfony 6.4.

Submitting Forms
~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -403,10 +399,6 @@ to call ``json_decode()`` explicitly::
$response = $browser->getResponse()->toArray();
// $response is a PHP array of the decoded JSON contents

.. versionadded:: 6.1

The ``toArray()`` method was introduced in Symfony 6.1.

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

Expand Down
8 changes: 0 additions & 8 deletions components/cache/adapters/redis_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ as the second and third parameters::
$defaultLifetime = 0
);

.. versionadded:: 6.3

Support for `Relay`_ was introduced in Symfony 6.3.

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

Expand Down Expand Up @@ -163,10 +159,6 @@ array of ``key => value`` pairs representing option names and their respective v
Available Options
~~~~~~~~~~~~~~~~~

.. versionadded:: 6.3

``\Relay\Relay`` support was introduced in Symfony 6.3.

``class`` (type: ``string``, default: ``null``)
Specifies the connection library to return, either ``\Redis``, ``\Relay\Relay`` or ``\Predis\Client``.
If none is specified, fallback value is in following order, depending which one is available first:
Expand Down
32 changes: 0 additions & 32 deletions components/clock.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
The Clock Component
===================

.. versionadded:: 6.2

The Clock component was introduced in Symfony 6.2

The Clock component decouples applications from the system clock. This allows
you to fix time to improve testability of time-sensitive logic.

Expand Down Expand Up @@ -79,16 +75,6 @@ When using the Clock component, you manipulate
:class:`Symfony\\Component\\Clock\\DatePoint` instances. You can learn more
about it in :ref:`the dedicated section <clock_date-point>`.

.. versionadded:: 6.3

The :class:`Symfony\\Component\\Clock\\Clock` class and ``now()`` function
were introduced in Symfony 6.3.

.. versionadded:: 6.4

The ``modifier`` argument of the ``now()`` function was introduced in
Symfony 6.4.

Available Clocks Implementations
--------------------------------

Expand Down Expand Up @@ -208,10 +194,6 @@ you can set the current time arbitrarily without having to change your service c
This will help you test every case of your method without the need of actually
being in a month or another.

.. versionadded:: 6.3

The :class:`Symfony\\Component\\Clock\\ClockAwareTrait` was introduced in Symfony 6.3.

.. _clock_date-point:

The ``DatePoint`` Class
Expand Down Expand Up @@ -253,11 +235,6 @@ The constructor also allows setting a timezone or custom referenced date::
error handling across versions of PHP, thanks to polyfilling `PHP 8.3's behavior`_
on the topic.

.. versionadded:: 6.4

The :class:`Symfony\\Component\\Clock\\DatePoint` class was introduced
in Symfony 6.4.

.. _clock_writing-tests:

Writing Time-Sensitive Tests
Expand Down Expand Up @@ -314,10 +291,6 @@ By combining the :class:`Symfony\\Component\\Clock\\ClockAwareTrait` and
:class:`Symfony\\Component\\Clock\\Test\\ClockSensitiveTrait`, you have full
control on your time-sensitive code's behavior.

.. versionadded:: 6.3

The :class:`Symfony\\Component\\Clock\\Test\\ClockSensitiveTrait` was introduced in Symfony 6.3.

Exceptions Management
---------------------

Expand All @@ -338,11 +311,6 @@ These exceptions are available starting from PHP 8.3. However, thanks to the
`symfony/polyfill-php83`_ dependency required by the Clock component, you can
use them even if your project doesn't use PHP 8.3 yet.

.. versionadded:: 6.4

The support for ``DateMalformedStringException`` and
``DateInvalidTimeZoneException`` was introduced in Symfony 6.4.

.. _`PSR-20`: https://www.php-fig.org/psr/psr-20/
.. _`accepted by the DateTime constructor`: https://www.php.net/manual/en/datetime.formats.php
.. _`PHP DateTime exceptions`: https://wiki.php.net/rfc/datetime-exceptions
Expand Down
5 changes: 0 additions & 5 deletions components/config/definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,6 @@ The configuration can now be written like this::
->end()
;

.. versionadded:: 6.3

The support of enum values in ``enumNode()`` was introduced
in Symfony 6.3.

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

Expand Down
15 changes: 0 additions & 15 deletions components/console/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ Listeners receive a
a signal. You can learn more about signals in the
:ref:`the dedicated section <console-events_signal>`.

.. versionadded:: 6.4

Dispatching the ``ConsoleEvents::TERMINATE`` event on exit
signal was introduced in Symfony 6.4.

.. _console-events_signal:

The ``ConsoleEvents::SIGNAL`` Event
Expand Down Expand Up @@ -207,11 +202,6 @@ method::
$event->abortExit();
});

.. versionadded:: 6.3

The ``setExitCode()``, ``getExitCode()`` and ``abortExit()`` methods were introduced
in Symfony 6.3.

.. tip::

All the available signals (``SIGINT``, ``SIGQUIT``, etc.) are defined as
Expand Down Expand Up @@ -262,11 +252,6 @@ handle all signals e.g. to do some tasks before terminating the command.
:method:`Symfony\\Component\\Console\\SignalRegistry\\SignalMap::getSignalName`
method.

.. versionadded:: 6.4

The :class:`Symfony\\Component\\Console\\SignalRegistry\\SignalMap` class was
introduced in Symfony 6.4.

.. _`reserved exit codes`: https://www.tldp.org/LDP/abs/html/exitcodes.html
.. _`Signals`: https://en.wikipedia.org/wiki/Signal_(IPC)
.. _`constants of the PCNTL PHP extension`: https://www.php.net/manual/en/pcntl.constants.php
4 changes: 0 additions & 4 deletions components/console/helpers/formatterhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,3 @@ precision (default ``1``) of the result::
$formatter->truncate(125); // 2 mins
$formatter->truncate(125, 2); // 2 mins, 5 secs
$formatter->truncate(172799, 4); // 1 day, 23 hrs, 59 mins, 59 secs

.. versionadded:: 6.4

The support for exact times were introduced in Symfony 6.4.
8 changes: 0 additions & 8 deletions components/console/helpers/progressbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ that starting point::
// displays the progress bar starting at 25 completed units
$progressBar->start(null, 25);

.. versionadded:: 6.2

The option to start a progress bar at a certain point was introduced in Symfony 6.2.

.. tip::

If your platform doesn't support ANSI codes, updates to the progress
Expand Down Expand Up @@ -375,10 +371,6 @@ with the ``setPlaceholderFormatter`` method::
return $progressBar->getMaxSteps() - $progressBar->getProgress();
});

.. versionadded:: 6.3

The ``setPlaceholderFormatter()`` method was introduced in Symfony 6.3.

Custom Messages
~~~~~~~~~~~~~~~

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 @@ -175,10 +175,6 @@ The output of this command will be:
| Author: Charles Dickens |
+------------------------------+
.. versionadded:: 6.1

Support for vertical rendering was introduced in Symfony 6.1.

The table style can be changed to any built-in styles via
:method:`Symfony\\Component\\Console\\Helper\\Table::setStyle`::

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``.

.. versionadded:: 6.3

The support for ``*:scope`` was introduced in Symfony 6.3.

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

Expand Down
4 changes: 0 additions & 4 deletions components/dependency_injection/compilation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,6 @@ The parameter being deprecated must be set before being declared as deprecated.
Otherwise a :class:`Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException`
exception will be thrown.

.. versionadded:: 6.3

The ``ContainerBuilder::deprecateParameter()`` method was introduced in Symfony 6.3.

.. note::

Just registering an extension with the container is not enough to get
Expand Down
14 changes: 0 additions & 14 deletions components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,6 @@ Access the value of the first node of the current selection::
// but you can get the unchanged text by passing FALSE as argument
$text = $crawler->filterXPath('//body/p')->innerText(false);

.. versionadded:: 6.3

The removal of whitespace characters by default in ``innerText()`` was
introduced in Symfony 6.3.

Access the attribute value of the first node of the current selection::

$class = $crawler->filterXPath('//body/p')->attr('class');
Expand All @@ -245,11 +240,6 @@ Access the attribute value of the first node of the current selection::

$class = $crawler->filterXPath('//body/p')->attr('class', 'my-default-class');

.. versionadded:: 6.4

The possibility to specify a default value to the ``attr()`` method
was introduced in Symfony 6.4.

Extract attribute and/or node values from the list of nodes::

$attributes = $crawler
Expand Down Expand Up @@ -672,10 +662,6 @@ parser, set its ``useHtml5Parser`` constructor argument to ``true``::
By doing so, the crawler will use the HTML5 parser provided by the `masterminds/html5`_
library to parse the documents.

.. versionadded:: 6.3

The ``useHtml5Parser`` argument was introduced in Symfony 6.3.

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

Expand Down
4 changes: 0 additions & 4 deletions components/expression_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ can chain multiple coalescing operators.
* ``foo[3] ?? 'no'``
* ``foo.baz ?? foo['baz'] ?? 'no'``

.. versionadded:: 6.2

The null-coalescing operator was introduced in Symfony 6.2.

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

Expand Down
5 changes: 0 additions & 5 deletions components/finder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,6 @@ Sort the results by name, extension, size or type (directories first, then files
$finder->sortBySize();
$finder->sortByType();

.. versionadded:: 6.2

The ``sortByCaseInsensitiveName()``, ``sortByExtension()`` and ``sortBySize()``
methods were introduced in Symfony 6.2.

.. tip::

By default, the ``sortByName()`` method uses the :phpfunction:`strcmp` PHP
Expand Down
Loading