Skip to content

Commit 64062ed

Browse files
committed
Removed the versionadded directives for previous versions
1 parent 9b87127 commit 64062ed

Some content is hidden

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

41 files changed

+9
-232
lines changed

components/browser_kit.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ make AJAX requests::
9191
// the required HTTP_X_REQUESTED_WITH header is added automatically
9292
$crawler = $client->xmlHttpRequest('GET', '/');
9393

94-
.. versionadded:: 4.1
95-
The ``xmlHttpRequest()`` method was introduced in Symfony 4.1.
96-
9794
Clicking Links
9895
~~~~~~~~~~~~~~
9996

components/cache/cache_pools.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ when all items are successfully deleted)::
151151
# clears the "cache.validation" and "cache.app" pool
152152
$ php bin/console cache:pool:clear cache.validation cache.app
153153
154-
.. versionadded:: 4.1
155-
156-
The ``cache:pool:delete`` command was introduced in Symfony 4.1.
157-
158154
.. _component-cache-cache-pool-prune:
159155

160156
Pruning Cache Items

components/config/definition.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,9 +791,6 @@ for the node, instead of the node's original value.
791791
Configuring the Node Path Separator
792792
-----------------------------------
793793

794-
.. versionadded:: 4.1
795-
The option to configure the node path separator was introduced in Symfony 4.1.
796-
797794
Consider the following config builder example::
798795

799796
$treeBuilder = new TreeBuilder('database');

components/console/helpers/progressbar.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ value and then call the ``setMaxSteps()`` method to update it as needed::
6464
// a complex task has just been created: increase the progressbar to 200 units
6565
$progressBar->setMaxSteps(200);
6666

67-
.. versionadded:: 4.1
68-
The ``setMaxSteps()`` method was introduced in Symfony 4.1.
69-
7067
Another solution is to omit the steps argument when creating the
7168
:class:`Symfony\\Component\\Console\\Helper\\ProgressBar` instance::
7269

@@ -348,10 +345,6 @@ of the custom placeholders::
348345
Displaying Multiple Progress Bars
349346
---------------------------------
350347

351-
.. versionadded:: 4.1
352-
The feature to display multiple progress bars using output sections was
353-
introduced in Symfony 4.1.
354-
355348
When using :ref:`Console output sections <console-output-sections>` it's
356349
possible to display multiple progress bars at the same time and change their
357350
progress independently::

components/console/helpers/table.rst

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,6 @@ which outputs:
213213
│ 80-902734-1-6 │ And Then There Were None │ Agatha Christie │
214214
└───────────────┴──────────────────────────┴──────────────────┘
215215
216-
.. versionadded:: 4.1
217-
The ``box`` style was introduced in Symfony 4.1.
218-
219216
You can also set the style to ``box-double``::
220217

221218
$table->setStyle('box-double');
@@ -234,9 +231,6 @@ which outputs:
234231
║ 80-902734-1-6 │ And Then There Were None │ Agatha Christie ║
235232
╚═══════════════╧══════════════════════════╧══════════════════╝
236233
237-
.. versionadded:: 4.1
238-
The ``box-double`` style was introduced in Symfony 4.1.
239-
240234
If the built-in styles do not fit your need, define your own::
241235

242236
use Symfony\Component\Console\Helper\TableStyle;
@@ -266,17 +260,6 @@ Here is a full list of things you can customize:
266260
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setBorderFormat`
267261
* :method:`Symfony\\Component\\Console\\Helper\\TableStyle::setPadType`
268262

269-
.. versionadded:: 4.1
270-
The ``setDefaultCrossingChars`` method was introduced in Symfony 4.1.
271-
It replaces the deprecated ``setHorizontalBorderChar`` method.
272-
273-
Also, the ``setVerticalBorderChars`` method was introduced. Use this instead
274-
of the deprecated ``setVerticalBorderChar`` method.
275-
276-
The ``setCrossingChars()`` and ``setDefaultCrossingChar()`` methods are also
277-
new. Previously you could only use the now deprecated ``setCrossingChar()``
278-
method.
279-
280263
.. tip::
281264

282265
You can also register a style globally::
@@ -382,9 +365,6 @@ you to create any table layout you may wish.
382365
Modifying Rendered Tables
383366
-------------------------
384367

385-
.. versionadded:: 4.1
386-
The feature to modify rendered tables was introduced in Symfony 4.1.
387-
388368
The ``render()`` method requires passing the entire table contents. However,
389369
sometimes that information is not available beforehand because it's generated
390370
dynamically. In those cases, use the

components/http_foundation.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -242,18 +242,9 @@ the
242242
method tells you if the request contains a session which was started in one of
243243
the previous requests.
244244

245-
.. versionadded:: 4.1
246-
Using :method:`Symfony\\Component\\HttpFoundation\\Request::getSession`
247-
when no session has been set was deprecated in Symfony 4.1. It will throw
248-
an exception in Symfony 5.0 when the session is ``null``. Check for an existing session
249-
first by calling :method:`Symfony\\Component\\HttpFoundation\\Request::hasSession`.
250-
251245
Processing HTTP Headers
252246
~~~~~~~~~~~~~~~~~~~~~~~
253247

254-
.. versionadded:: 4.1
255-
The ``HeaderUtils`` class was introduced in Symfony 4.1.
256-
257248
Processing HTTP headers is not a trivial task because of the escaping and white
258249
space handling of their contents. Symfony provides a
259250
:class:`Symfony\\Component\\HttpFoundation\\HeaderUtils` class that abstracts
@@ -325,10 +316,6 @@ are also supported::
325316
$quality = $accept->get('text/xml')->getQuality(); // $quality = 0.8
326317
$quality = $accept->get('application/xml')->getQuality(); // $quality = 0.3
327318

328-
.. versionadded:: 4.1
329-
The support of default values in the ``Accept-*`` headers was introduced in
330-
Symfony 4.1.
331-
332319
Accessing other Data
333320
~~~~~~~~~~~~~~~~~~~~
334321

components/http_foundation/session_configuration.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ Example usage::
9191
Migrating Between Save Handlers
9292
-------------------------------
9393

94-
.. versionadded:: 4.1
95-
  The ``MigratingSessionHandler`` class was introduced in Symfony 4.1.
96-
9794
If your application changes the way sessions are stored, use the
9895
:class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\MigratingSessionHandler`
9996
to migrate between old and new save handlers without losing session data.

components/ldap.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,5 @@ operation type.
168168

169169
.. versionadded:: 4.2
170170
The ``applyOperations()`` method was introduced in Symfony 4.2.
171-
172-
.. versionadded:: 4.1
173-
The ``addAttributeValues()`` and ``removeAttributeValues()`` methods
174-
were introduced in Symfony 4.1.
175171

176172
.. _Packagist: https://packagist.org/packages/symfony/ldap

components/lock.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@ to reset the TTL to its original value::
157157
// refresh the lock for 600 seconds (next refresh() call will be 30 seconds again)
158158
$lock->refresh(600);
159159

160-
.. versionadded:: 4.1
161-
The feature to pass a custom TTL as an argument of the ``refresh()``
162-
method was introduced in Symfony 4.1.
163-
164160
Available Stores
165161
----------------
166162

components/process.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,6 @@ whether `TTY`_ is supported on the current operating system::
461461

462462
$process = (new Process())->setTty(Process::isTtySupported());
463463

464-
.. versionadded:: 4.1
465-
The ``isTtySupported()`` method was introduced in Symfony 4.1.
466-
467464
.. _`Symfony Issue#5759`: https://github.com/symfony/symfony/issues/5759
468465
.. _`PHP Bug#39992`: https://bugs.php.net/bug.php?id=39992
469466
.. _`exec`: https://en.wikipedia.org/wiki/Exec_(operating_system)

components/property_info.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,6 @@ for getter/isser/setter/hasser method in addition to whether or not a property i
249249
to determine if it's accessible. This based on how the :doc:`PropertyAccess </components/property_access>`
250250
works.
251251

252-
.. versionadded:: 4.1
253-
254-
The support of hasser methods in the ``ReflectionExtractor`` class was
255-
introduced in Symfony 4.1.
256-
257252
.. _property-info-initializable:
258253

259254
Property Initializable Information

components/serializer.rst

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,6 @@ There are several types of normalizers available:
717717
:class:`Symfony\\Component\\Validator\\ConstraintViolationListInterface`
718718
into a list of errors according to the `RFC 7807`_ standard.
719719

720-
.. versionadded:: 4.1
721-
722-
The ``ConstraintViolationListNormalizer`` was introduced in Symfony 4.1.
723-
724720
.. _component-serializer-encoders:
725721

726722
Encoders
@@ -776,10 +772,8 @@ The ``CsvEncoder`` encodes to and decodes from CSV.
776772
You can pass the context key ``as_collection`` in order to have the results
777773
always as a collection.
778774

779-
.. versionadded:: 4.1
780-
The ``as_collection`` option was introduced in Symfony 4.1.
781-
782775
.. versionadded:: 4.2
776+
783777
Relying on the default value ``false`` is deprecated since Symfony 4.2.
784778

785779
The ``XmlEncoder``
@@ -818,9 +812,6 @@ the key ``#comment`` for encoding XML comments::
818812
You can pass the context key ``as_collection`` in order to have the results
819813
always as a collection.
820814

821-
.. versionadded:: 4.1
822-
The ``as_collection`` option was introduced in Symfony 4.1.
823-
824815
.. tip::
825816

826817
XML comments are ignored by default when decoding contents, but this
@@ -831,9 +822,6 @@ always as a collection.
831822
changed with the optional ``$encoderIgnoredNodeTypes`` argument of the
832823
``XmlEncoder`` class constructor.
833824

834-
.. versionadded:: 4.1
835-
XML comments are ignored by default starting from Symfony 4.1.
836-
837825
The ``YamlEncoder``
838826
~~~~~~~~~~~~~~~~~~~
839827

@@ -1105,10 +1093,8 @@ having unique identifiers::
11051093
);
11061094
*/
11071095

1108-
.. versionadded:: 4.1
1109-
The ``setMaxDepthHandler()`` method was introduced in Symfony 4.1.
1110-
11111096
.. versionadded:: 4.2
1097+
11121098
The ``$outerObject``, ``$attributeName``, ``$format`` and ``$context``
11131099
parameters of ``setMaxDepthHandler()`` were introduced in Symfony 4.2.
11141100

@@ -1228,9 +1214,6 @@ These are the options available:
12281214
Handling Constructor Arguments
12291215
------------------------------
12301216

1231-
.. versionadded:: 4.1
1232-
The ``default_constructor_arguments`` option was introduced in Symfony 4.1.
1233-
12341217
If the class constructor defines arguments, as usually happens with
12351218
`Value Objects`_, the serializer won't be able to create the object if some
12361219
arguments are missing. In those cases, use the ``default_constructor_arguments``

components/var_dumper.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,11 @@ current PHP SAPI:
9797
function. This function dumps the variables using ``dump()`` and
9898
immediately ends the execution of the script (using :phpfunction:`exit`).
9999

100-
.. versionadded:: 4.1
101-
The ``dd()`` helper method was introduced in Symfony 4.1.
102-
103100
.. _var-dumper-dump-server:
104101

105102
The Dump Server
106103
---------------
107104

108-
.. versionadded:: 4.1
109-
The dump server was introduced in Symfony 4.1.
110-
111105
The ``dump()`` function outputs its contents in the same browser window or
112106
console terminal as your own application. Sometimes mixing the real output
113107
with the debug output can be confusing. That's why this component provides a
@@ -280,10 +274,6 @@ Example::
280274
}
281275
}
282276

283-
.. versionadded:: 4.1
284-
The possibility of passing non-string variables as the first argument of
285-
``assertDumpEquals()`` was introduced in Symfony 4.1.
286-
287277
Dump Examples and Output
288278
------------------------
289279

components/workflow.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ are trying to use it with::
7575
$registry->addWorkflow($blogWorkflow, new InstanceOfSupportStrategy(BlogPost::class));
7676
$registry->addWorkflow($newsletterWorkflow, new InstanceOfSupportStrategy(Newsletter::class));
7777

78-
.. versionadded:: 4.1
79-
The ``addWorkflow()`` method was introduced in Symfony 4.1. In previous
80-
Symfony versions it was called ``add()``.
81-
8278
Usage
8379
-----
8480

configuration/external_parameters.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,6 @@ Symfony provides the following env var processors:
411411
framework:
412412
trusted_hosts: '%env(csv:TRUSTED_HOSTS)%'
413413
414-
.. versionadded:: 4.1
415-
The ``csv`` processor was introduced in Symfony 4.1.
416-
417414
``env(file:FOO)``
418415
Returns the contents of a file whose path is the value of the ``FOO`` env var:
419416

console.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ want a command to create a user::
3737
{
3838
// the name of the command (the part after "bin/console")
3939
protected static $defaultName = 'app:create-user';
40-
40+
4141
protected function configure()
4242
{
4343
// ...
@@ -149,10 +149,6 @@ the console::
149149
$output->write('create a user.');
150150
}
151151

152-
.. versionadded:: 4.1
153-
The support of PHP iterators in the ``write()`` and ``writeln()`` methods
154-
was introduced in Symfony 4.1.
155-
156152
Now, try executing the command:
157153

158154
.. code-block:: terminal
@@ -169,9 +165,6 @@ Now, try executing the command:
169165
Output Sections
170166
~~~~~~~~~~~~~~~
171167

172-
.. versionadded:: 4.1
173-
Output sections were introduced in Symfony 4.1.
174-
175168
The regular console output can be divided into multiple independent regions
176169
called "output sections". Create one or more of these sections when you need to
177170
clear and overwrite the output information.

controller.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,6 @@ the argument by its name:
276276
Like with all services, you can also use regular :ref:`constructor injection <services-constructor-injection>`
277277
in your controllers.
278278

279-
.. versionadded:: 4.1
280-
The ability to bind scalar values to controller arguments was introduced in
281-
Symfony 4.1. Previously you could only bind services.
282-
283279
For more information about services, see the :doc:`/service_container` article.
284280

285281
Generating Controllers

controller/upload_file.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ There are some important things to consider in the code of the above controller:
190190
method to let Symfony guess the right extension according to the file MIME type;
191191

192192
.. versionadded:: 4.1
193+
193194
The :method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getClientSize`
194195
method was deprecated in Symfony 4.1 and will be removed in Symfony 5.0.
195196
Use ``getSize()`` instead.
@@ -267,9 +268,6 @@ logic to a separate service::
267268
:class:`Symfony\\Component\\HttpFoundation\\File\\Exception\\NoTmpDirFileException`,
268269
and :class:`Symfony\\Component\\HttpFoundation\\File\\Exception\\PartialFileException`.
269270

270-
.. versionadded:: 4.1
271-
The detailed exception classes were introduced in Symfony 4.1.
272-
273271
Then, define a service for this class:
274272

275273
.. configuration-block::

event_dispatcher.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ listener class:
119119
method (which makes event listeners invokable);
120120
#. If the ``_invoke()`` method is not defined either, throw an exception.
121121

122-
.. versionadded:: 4.1
123-
The support of the ``__invoke()`` method to create invokable event listeners
124-
was introduced in Symfony 4.1.
125-
126122
.. note::
127123

128124
There is an optional attribute for the ``kernel.event_listener`` tag called

http_cache.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,6 @@ Symfony won't modify it::
380380

381381
$response->headers->set(AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER, 'true');
382382

383-
.. versionadded:: 4.1
384-
The ``NO_AUTO_CACHE_CONTROL_HEADER`` header was introduced in Symfony 4.1.
385-
386383
Summary
387384
-------
388385

logging/monolog_exclude_http_codes.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
How to Configure Monolog to Exclude Specific HTTP Codes from the Log
77
====================================================================
88

9-
.. versionadded:: 4.1
10-
The ability to exclude log messages based on their status codes was
11-
introduced in Symfony 4.1 and MonologBundle 3.3.
12-
139
Sometimes your logs become flooded with unwanted HTTP errors, for example,
1410
403s and 404s. When using a ``fingers_crossed`` handler, you can exclude
1511
logging these HTTP codes based on the MonologBundle configuration:

0 commit comments

Comments
 (0)