Skip to content

Commit bbd1d8e

Browse files
Remove all 6.x versionadded on 7.0
1 parent 7f8c10d commit bbd1d8e

File tree

123 files changed

+18
-1516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+18
-1516
lines changed

.doctor-rst.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ rules:
6868

6969
# master
7070
versionadded_directive_major_version:
71-
major_version: 6
71+
major_version: 7
7272

7373
versionadded_directive_min_version:
74-
min_version: '6.0'
74+
min_version: '7.0'
7575

7676
deprecated_directive_major_version:
77-
major_version: 6
77+
major_version: 7
7878

7979
deprecated_directive_min_version:
80-
min_version: '6.0'
80+
min_version: '7.0'
8181

8282
exclude_rule_for_file:
8383
- path: configuration/multiple_kernels.rst

bundles.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ Start by creating a new class called ``AcmeTestBundle``::
5656
{
5757
}
5858

59-
.. versionadded:: 6.1
60-
61-
The :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle` was
62-
introduced in Symfony 6.1.
63-
6459
.. caution::
6560

6661
If your bundle must be compatible with previous Symfony versions you have to

bundles/configuration.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,6 @@ In your extension, you can load this and dynamically set its arguments::
320320
Using the AbstractBundle Class
321321
------------------------------
322322

323-
.. versionadded:: 6.1
324-
325-
The ``AbstractBundle`` class was introduced in Symfony 6.1.
326-
327323
As an alternative, instead of creating an extension and configuration class as
328324
shown in the previous section, you can also extend
329325
:class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle` to add this

bundles/extension.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ To read more about it, see the ":doc:`/bundles/configuration`" article.
111111
Loading Services directly in your Bundle class
112112
----------------------------------------------
113113

114-
.. versionadded:: 6.1
115-
116-
The ``AbstractBundle`` class was introduced in Symfony 6.1.
117-
118114
Alternatively, you can define and load services configuration directly in a
119115
bundle class instead of creating a specific ``Extension`` class. You can do
120116
this by extending from :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle`

bundles/prepend_extension.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ registered and the ``entity_manager_name`` setting for ``acme_hello`` is set to
154154
Prepending Extension in the Bundle Class
155155
----------------------------------------
156156

157-
.. versionadded:: 6.1
158-
159-
The ``AbstractBundle`` class was introduced in Symfony 6.1.
160-
161157
You can also append or prepend extension configuration directly in your
162158
Bundle class if you extend from the :class:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle`
163159
class and define the :method:`Symfony\\Component\\HttpKernel\\Bundle\\AbstractBundle::prependExtension`

cache.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -745,20 +745,12 @@ Clear all cache pools:
745745
746746
$ php bin/console cache:pool:clear --all
747747
748-
.. versionadded:: 6.3
749-
750-
The ``--all`` option was introduced in Symfony 6.3.
751-
752748
Clear all cache pools except some:
753749

754750
.. code-block:: terminal
755751
756752
$ php bin/console cache:pool:clear --all --exclude=my_cache_pool --exclude=another_cache_pool
757753
758-
.. versionadded:: 6.4
759-
760-
The ``--exclude`` option was introduced in Symfony 6.4.
761-
762754
Clear all caches everywhere:
763755

764756
.. code-block:: terminal
@@ -767,10 +759,6 @@ Clear all caches everywhere:
767759
768760
Clear cache by tag(s):
769761

770-
.. versionadded:: 6.1
771-
772-
The ``cache:pool:invalidate-tags`` command was introduced in Symfony 6.1.
773-
774762
.. code-block:: terminal
775763
776764
# invalidate tag1 from all taggable pools

components/browser_kit.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ on a link::
130130
// ... and `clickLink()`
131131
$crawler = $client->clickLink('Go elsewhere...', ['X-Custom-Header' => 'Some data']);
132132

133-
.. versionadded:: 6.4
134-
135-
The ``serverParameters`` parameter was introduced in Symfony 6.4.
136-
137133
Submitting Forms
138134
~~~~~~~~~~~~~~~~
139135

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

406-
.. versionadded:: 6.1
407-
408-
The ``toArray()`` method was introduced in Symfony 6.1.
409-
410402
Learn more
411403
----------
412404

components/cache/adapters/redis_adapter.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ as the second and third parameters::
4141
$defaultLifetime = 0
4242
);
4343

44-
.. versionadded:: 6.3
45-
46-
Support for `Relay`_ was introduced in Symfony 6.3.
47-
4844
Configure the Connection
4945
------------------------
5046

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

166-
.. versionadded:: 6.3
167-
168-
``\Relay\Relay`` support was introduced in Symfony 6.3.
169-
170162
``class`` (type: ``string``, default: ``null``)
171163
Specifies the connection library to return, either ``\Redis``, ``\Relay\Relay`` or ``\Predis\Client``.
172164
If none is specified, fallback value is in following order, depending which one is available first:

components/clock.rst

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
The Clock Component
22
===================
33

4-
.. versionadded:: 6.2
5-
6-
The Clock component was introduced in Symfony 6.2
7-
84
The Clock component decouples applications from the system clock. This allows
95
you to fix time to improve testability of time-sensitive logic.
106

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

82-
.. versionadded:: 6.3
83-
84-
The :class:`Symfony\\Component\\Clock\\Clock` class and ``now()`` function
85-
were introduced in Symfony 6.3.
86-
87-
.. versionadded:: 6.4
88-
89-
The ``modifier`` argument of the ``now()`` function was introduced in
90-
Symfony 6.4.
91-
9278
Available Clocks Implementations
9379
--------------------------------
9480

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

211-
.. versionadded:: 6.3
212-
213-
The :class:`Symfony\\Component\\Clock\\ClockAwareTrait` was introduced in Symfony 6.3.
214-
215197
.. _clock_date-point:
216198

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

256-
.. versionadded:: 6.4
257-
258-
The :class:`Symfony\\Component\\Clock\\DatePoint` class was introduced
259-
in Symfony 6.4.
260-
261238
.. _clock_writing-tests:
262239

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

317-
.. versionadded:: 6.3
318-
319-
The :class:`Symfony\\Component\\Clock\\Test\\ClockSensitiveTrait` was introduced in Symfony 6.3.
320-
321294
Exceptions Management
322295
---------------------
323296

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

341-
.. versionadded:: 6.4
342-
343-
The support for ``DateMalformedStringException`` and
344-
``DateInvalidTimeZoneException`` was introduced in Symfony 6.4.
345-
346314
.. _`PSR-20`: https://www.php-fig.org/psr/psr-20/
347315
.. _`accepted by the DateTime constructor`: https://www.php.net/manual/en/datetime.formats.php
348316
.. _`PHP DateTime exceptions`: https://wiki.php.net/rfc/datetime-exceptions

components/config/definition.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,6 @@ The configuration can now be written like this::
171171
->end()
172172
;
173173

174-
.. versionadded:: 6.3
175-
176-
The support of enum values in ``enumNode()`` was introduced
177-
in Symfony 6.3.
178-
179174
Array Nodes
180175
~~~~~~~~~~~
181176

components/console/events.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,6 @@ Listeners receive a
156156
a signal. You can learn more about signals in the
157157
:ref:`the dedicated section <console-events_signal>`.
158158

159-
.. versionadded:: 6.4
160-
161-
Dispatching the ``ConsoleEvents::TERMINATE`` event on exit
162-
signal was introduced in Symfony 6.4.
163-
164159
.. _console-events_signal:
165160

166161
The ``ConsoleEvents::SIGNAL`` Event
@@ -207,11 +202,6 @@ method::
207202
$event->abortExit();
208203
});
209204

210-
.. versionadded:: 6.3
211-
212-
The ``setExitCode()``, ``getExitCode()`` and ``abortExit()`` methods were introduced
213-
in Symfony 6.3.
214-
215205
.. tip::
216206

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

265-
.. versionadded:: 6.4
266-
267-
The :class:`Symfony\\Component\\Console\\SignalRegistry\\SignalMap` class was
268-
introduced in Symfony 6.4.
269-
270255
.. _`reserved exit codes`: https://www.tldp.org/LDP/abs/html/exitcodes.html
271256
.. _`Signals`: https://en.wikipedia.org/wiki/Signal_(IPC)
272257
.. _`constants of the PCNTL PHP extension`: https://www.php.net/manual/en/pcntl.constants.php

components/console/helpers/formatterhelper.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,3 @@ precision (default ``1``) of the result::
132132
$formatter->truncate(125); // 2 mins
133133
$formatter->truncate(125, 2); // 2 mins, 5 secs
134134
$formatter->truncate(172799, 4); // 1 day, 23 hrs, 59 mins, 59 secs
135-
136-
.. versionadded:: 6.4
137-
138-
The support for exact times were introduced in Symfony 6.4.

components/console/helpers/progressbar.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ that starting point::
6969
// displays the progress bar starting at 25 completed units
7070
$progressBar->start(null, 25);
7171

72-
.. versionadded:: 6.2
73-
74-
The option to start a progress bar at a certain point was introduced in Symfony 6.2.
75-
7672
.. tip::
7773

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

378-
.. versionadded:: 6.3
379-
380-
The ``setPlaceholderFormatter()`` method was introduced in Symfony 6.3.
381-
382374
Custom Messages
383375
~~~~~~~~~~~~~~~
384376

components/console/helpers/table.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ The output of this command will be:
175175
| Author: Charles Dickens |
176176
+------------------------------+
177177
178-
.. versionadded:: 6.1
179-
180-
Support for vertical rendering was introduced in Symfony 6.1.
181-
182178
The table style can be changed to any built-in styles via
183179
:method:`Symfony\\Component\\Console\\Helper\\Table::setStyle`::
184180

components/css_selector.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ Pseudo-classes are partially supported:
9494
``li:first-of-type``) but not with the ``*`` selector).
9595
* Supported: ``*:only-of-type``, ``*:scope``.
9696

97-
.. versionadded:: 6.3
98-
99-
The support for ``*:scope`` was introduced in Symfony 6.3.
100-
10197
Learn more
10298
----------
10399

components/dependency_injection/compilation.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,6 @@ The parameter being deprecated must be set before being declared as deprecated.
278278
Otherwise a :class:`Symfony\\Component\\DependencyInjection\\Exception\\ParameterNotFoundException`
279279
exception will be thrown.
280280

281-
.. versionadded:: 6.3
282-
283-
The ``ContainerBuilder::deprecateParameter()`` method was introduced in Symfony 6.3.
284-
285281
.. note::
286282

287283
Just registering an extension with the container is not enough to get

components/dom_crawler.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,6 @@ Access the value of the first node of the current selection::
229229
// but you can get the unchanged text by passing FALSE as argument
230230
$text = $crawler->filterXPath('//body/p')->innerText(false);
231231

232-
.. versionadded:: 6.3
233-
234-
The removal of whitespace characters by default in ``innerText()`` was
235-
introduced in Symfony 6.3.
236-
237232
Access the attribute value of the first node of the current selection::
238233

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

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

248-
.. versionadded:: 6.4
249-
250-
The possibility to specify a default value to the ``attr()`` method
251-
was introduced in Symfony 6.4.
252-
253243
Extract attribute and/or node values from the list of nodes::
254244

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

675-
.. versionadded:: 6.3
676-
677-
The ``useHtml5Parser`` argument was introduced in Symfony 6.3.
678-
679665
Learn more
680666
----------
681667

components/expression_language.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ can chain multiple coalescing operators.
9292
* ``foo[3] ?? 'no'``
9393
* ``foo.baz ?? foo['baz'] ?? 'no'``
9494

95-
.. versionadded:: 6.2
96-
97-
The null-coalescing operator was introduced in Symfony 6.2.
98-
9995
Passing in Variables
10096
--------------------
10197

components/finder.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,6 @@ Sort the results by name, extension, size or type (directories first, then files
340340
$finder->sortBySize();
341341
$finder->sortByType();
342342

343-
.. versionadded:: 6.2
344-
345-
The ``sortByCaseInsensitiveName()``, ``sortByExtension()`` and ``sortBySize()``
346-
methods were introduced in Symfony 6.2.
347-
348343
.. tip::
349344

350345
By default, the ``sortByName()`` method uses the :phpfunction:`strcmp` PHP

0 commit comments

Comments
 (0)