Skip to content

Commit 71a183b

Browse files
Remove all 6.x versionadded on 7.0
1 parent 4ce3528 commit 71a183b

File tree

115 files changed

+20
-1207
lines changed

Some content is hidden

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

115 files changed

+20
-1207
lines changed

bundles.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +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.
6359

6460
.. caution::
6561

@@ -94,7 +90,7 @@ to be adjusted if needed:
9490

9591
``src/``
9692
Contains all PHP classes related to the bundle logic (e.g. ``Controller/RandomController.php``).
97-
93+
9894
``config/``
9995
Houses configuration, including routing configuration (e.g. ``routing.yaml``).
10096

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 & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -728,10 +728,6 @@ Clear all cache pools:
728728
729729
$ php bin/console cache:pool:clear --all
730730
731-
.. versionadded:: 6.3
732-
733-
The ``--all`` option was introduced in Symfony 6.3.
734-
735731
Clear all caches everywhere:
736732

737733
.. code-block:: terminal
@@ -740,10 +736,6 @@ Clear all caches everywhere:
740736
741737
Clear cache by tag(s):
742738

743-
.. versionadded:: 6.1
744-
745-
The ``cache:pool:invalidate-tags`` command was introduced in Symfony 6.1.
746-
747739
.. code-block:: terminal
748740
749741
# invalidate tag1 from all taggable pools

components/browser_kit.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,6 @@ to call ``json_decode()`` explicitly::
381381
$response = $browser->getResponse()->toArray();
382382
// $response is a PHP array of the decoded JSON contents
383383

384-
.. versionadded:: 6.1
385-
386-
The ``toArray()`` method was introduced in Symfony 6.1.
387-
388384
Learn more
389385
----------
390386

components/cache/adapters/redis_adapter.rst

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

46-
.. versionadded:: 6.3
47-
48-
Support for `Relay`_ was introduced in Symfony 6.3.
49-
5046
Configure the Connection
5147
------------------------
5248

@@ -165,10 +161,6 @@ array of ``key => value`` pairs representing option names and their respective v
165161
Available Options
166162
~~~~~~~~~~~~~~~~~
167163

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

components/clock.rst

Lines changed: 0 additions & 17 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

@@ -65,11 +61,6 @@ The Clock component also provides the ``now()`` function::
6561

6662
Later on this page you can learn how to use this clock in your services and tests.
6763

68-
.. versionadded:: 6.3
69-
70-
The :class:`Symfony\\Component\\Clock\\Clock` class and ``now()`` function
71-
were introduced in Symfony 6.3.
72-
7364
Available Clocks Implementations
7465
--------------------------------
7566

@@ -189,10 +180,6 @@ you can set the current time arbitrarily without having to change your service c
189180
This will help you test every case of your method without the need of actually
190181
being in a month or another.
191182

192-
.. versionadded:: 6.3
193-
194-
The :class:`Symfony\\Component\\Clock\\ClockAwareTrait` was introduced in Symfony 6.3.
195-
196183
Writing Time-Sensitive Tests
197184
----------------------------
198185

@@ -247,8 +234,4 @@ By combining the :class:`Symfony\\Component\\Clock\\ClockAwareTrait` and
247234
:class:`Symfony\\Component\\Clock\\Test\\ClockSensitiveTrait`, you have full
248235
control on your time-sensitive code's behavior.
249236

250-
.. versionadded:: 6.3
251-
252-
The :class:`Symfony\\Component\\Clock\\Test\\ClockSensitiveTrait` was introduced in Symfony 6.3.
253-
254237
.. _`PSR-20`: https://www.php-fig.org/psr/psr-20/

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 & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,6 @@ method::
195195
$event->abortExit();
196196
});
197197

198-
.. versionadded:: 6.3
199-
200-
The ``setExitCode()``, ``getExitCode()`` and ``abortExit()`` methods were introduced
201-
in Symfony 6.3.
202-
203198
.. tip::
204199

205200
All the available signals (``SIGINT``, ``SIGQUIT``, etc.) are defined as
@@ -250,11 +245,6 @@ handle all signals e.g. to do some tasks before terminating the command.
250245
:method:`Symfony\\Component\\Console\\SignalRegistry\\SignalMap::getSignalName`
251246
method.
252247

253-
.. versionadded:: 6.4
254-
255-
The :class:`Symfony\\Component\\Console\\SignalRegistry\\SignalMap` class was
256-
introduced in Symfony 6.4.
257-
258248
.. deprecated:: 6.3
259249

260250
In Symfony versions previous to 6.3, all signals (except ``SIGUSR1`` and

components/console/helpers/progressbar.rst

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

58-
.. versionadded:: 6.2
59-
60-
The option to start a progress bar at a certain point was introduced in Symfony 6.2.
61-
6258
.. tip::
6359

6460
If your platform doesn't support ANSI codes, updates to the progress
@@ -351,10 +347,6 @@ with the ``setPlaceholderFormatter`` method::
351347
return $progressBar->getMaxSteps() - $progressBar->getProgress();
352348
});
353349

354-
.. versionadded:: 6.3
355-
356-
The ``setPlaceholderFormatter()`` method was introduced in Symfony 6.3.
357-
358350
Custom Messages
359351
~~~~~~~~~~~~~~~
360352

components/console/helpers/table.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ set the headers, set the rows and then render the table::
3838
])
3939
;
4040
$table->render();
41-
41+
4242
return Command::SUCCESS;
4343
}
4444
}
@@ -170,10 +170,6 @@ The output of this command will be:
170170
| Author: Charles Dickens |
171171
+------------------------------+
172172
173-
.. versionadded:: 6.1
174-
175-
Support for vertical rendering was introduced in Symfony 6.1.
176-
177173
The table style can be changed to any built-in styles via
178174
:method:`Symfony\\Component\\Console\\Helper\\Table::setStyle`::
179175

@@ -435,7 +431,7 @@ The only requirement to append rows is that the table must be rendered inside a
435431
$table->render();
436432

437433
$table->appendRow(['Symfony']);
438-
434+
439435
return Command::SUCCESS;
440436
}
441437
}

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 & 9 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');
@@ -660,10 +655,6 @@ parser, set its ``useHtml5Parser`` constructor argument to ``true``::
660655
By doing so, the crawler will use the HTML5 parser provided by the `masterminds/html5`_
661656
library to parse the documents.
662657

663-
.. versionadded:: 6.3
664-
665-
The ``useHtml5Parser`` argument was introduced in Symfony 6.3.
666-
667658
Learn more
668659
----------
669660

components/expression_language.rst

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

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

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

components/http_foundation.rst

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@ has some methods to filter the input values:
145145
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::getString`
146146
Returns the parameter value as a string;
147147

148-
.. versionadded:: 6.3
149-
150-
The ``ParameterBag::getEnum()`` and ``ParameterBag::getString()`` methods
151-
were introduced in Symfony 6.3.
152-
153148
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::filter`
154149
Filters the parameter by using the PHP :phpfunction:`filter_var` function.
155150

@@ -223,11 +218,6 @@ wrapping this data::
223218

224219
$data = $request->getPayload();
225220

226-
.. versionadded:: 6.3
227-
228-
The :method:`Symfony\\Component\\HttpFoundation\\Request::getPayload`
229-
method was introduced in Symfony 6.3.
230-
231221
Identifying a Request
232222
~~~~~~~~~~~~~~~~~~~~~
233223

@@ -392,10 +382,6 @@ use the ``isPrivateIp()`` method from the
392382
$isPrivate = IpUtils::isPrivateIp($ipv6);
393383
// $isPrivate = false
394384

395-
.. versionadded:: 6.3
396-
397-
The ``isPrivateIp()`` method was introduced in Symfony 6.3.
398-
399385
Accessing other Data
400386
~~~~~~~~~~~~~~~~~~~~
401387

@@ -565,11 +551,6 @@ call::
565551
'etag' => 'abcdef',
566552
]);
567553

568-
.. versionadded:: 6.1
569-
570-
The ``stale_if_error`` and ``stale_while_revalidate`` options were
571-
introduced in Symfony 6.1.
572-
573554
To check if the Response validators (``ETag``, ``Last-Modified``) match a
574555
conditional value specified in the client Request, use the
575556
:method:`Symfony\\Component\\HttpFoundation\\Response::isNotModified`
@@ -632,11 +613,6 @@ represented by a PHP callable instead of a string::
632613
Streaming a JSON Response
633614
~~~~~~~~~~~~~~~~~~~~~~~~~
634615

635-
.. versionadded:: 6.3
636-
637-
The :class:`Symfony\\Component\\HttpFoundation\\StreamedJsonResponse` class was
638-
introduced in Symfony 6.3.
639-
640616
The :class:`Symfony\\Component\\HttpFoundation\\StreamedJsonResponse` allows to
641617
stream large JSON responses using PHP generators to keep the used resources low.
642618

@@ -649,9 +625,9 @@ containing JSON serializable data::
649625

650626
// any method or function returning a PHP Generator
651627
function loadArticles(): \Generator {
652-
yield ['title' => 'Article 1'];
653-
yield ['title' => 'Article 2'];
654-
yield ['title' => 'Article 3'];
628+
yield ['title' => 'Article 1'];
629+
yield ['title' => 'Article 2'];
630+
yield ['title' => 'Article 3'];
655631
};
656632

657633
$response = new StreamedJsonResponse(

components/http_kernel.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,6 @@ Another typical use-case for this event is to retrieve the attributes from
290290
the controller using the :method:`Symfony\\Component\\HttpKernel\\Event\\ControllerEvent::getAttributes`
291291
method. See the Symfony section below for some examples.
292292

293-
.. versionadded:: 6.2
294-
295-
The ``ControllerEvent::getAttributes()`` method was introduced in Symfony 6.2.
296-
297293
Listeners to this event can also change the controller callable completely
298294
by calling :method:`ControllerEvent::setController <Symfony\\Component\\HttpKernel\\Event\\ControllerEvent::setController>`
299295
on the event object that's passed to listeners on this event.

0 commit comments

Comments
 (0)