Skip to content

Commit 2de7548

Browse files
committed
Removed versionadded directives of previous versions
1 parent 8a070cc commit 2de7548

Some content is hidden

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

44 files changed

+12
-203
lines changed

bundles/configuration.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ The ``Configuration`` class to handle the sample configuration looks like::
198198
}
199199

200200
.. versionadded:: 4.2
201+
201202
Not passing the root node name to ``TreeBuilder`` was deprecated in Symfony 4.2.
202203

203204
.. seealso::

components/asset.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,6 @@ document inside a template::
375375
Local Files and Other Protocols
376376
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
377377

378-
.. versionadded:: 4.2
379-
The support for other protocols was introduced in Symfony 4.2.
380-
381378
In addition to HTTP this component supports other protocols (such as ``file://``
382379
and ``ftp://``). This allows for example to serve local files in order to
383380
improve performance::

components/browser_kit.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ simulate the link click::
105105

106106
$crawler = $client->clickLink('Go elsewhere...');
107107

108-
.. versionadded:: 4.2
109-
The ``clickLink()`` method was introduced in Symfony 4.2.
110-
111108
If you need the :class:`Symfony\\Component\\DomCrawler\\Link` object that
112109
provides access to the link properties (e.g. ``$link->getMethod()``,
113110
``$link->getUri()``), use this other method:
@@ -151,9 +148,6 @@ field values, etc.) before submitting it::
151148
array('HTTP_ACCEPT_LANGUAGE' => 'es')
152149
);
153150

154-
.. versionadded:: 4.2
155-
The ``submitForm()`` method was introduced in Symfony 4.2.
156-
157151
If you need the :class:`Symfony\\Component\\DomCrawler\\Form` object that
158152
provides access to the form properties (e.g. ``$form->getUri()``,
159153
``$form->getValues()``, ``$form->getFields()``), use this other method::

components/cache/adapters/pdo_doctrine_dbal_adapter.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ third, and forth parameters::
3131
$options = array()
3232
);
3333

34-
.. versionadded:: 4.2
35-
Automatic table creation was introduced in Symfony 4.2.
36-
3734
The table where values are stored is created automatically on the first call to
3835
the :method:`Symfony\\Component\\Cache\\Adapter\\PdoAdapter::save` method.
3936
You can also create this table explicitly by calling the

components/config/definition.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ implements the :class:`Symfony\\Component\\Config\\Definition\\ConfigurationInte
6969
}
7070

7171
.. versionadded:: 4.2
72+
7273
Not passing the root node name to ``TreeBuilder`` was deprecated in Symfony 4.2.
7374

7475
Adding Node Definitions to the Tree

components/console/helpers/table.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ You can optionally display titles at the top and the bottom of the table::
8888
| 80-902734-1-6 | And Then There Were None | Agatha Christie |
8989
+---------------+--------- Page 1/2 -------+------------------+
9090
91-
.. versionadded:: 4.2
92-
The ``setHeaderTitle()`` and ``setFooterTitle()`` methods were introduced
93-
in Symfony 4.2.
94-
9591
By default the width of the columns is calculated automatically based on their
9692
contents. Use the :method:`Symfony\\Component\\Console\\Helper\\Table::setColumnWidths`
9793
method to set the column widths explicitly::
@@ -154,9 +150,6 @@ The output of this command will be:
154150
| (the rest of rows...) |
155151
+-------+------------+--------------------------------+
156152
157-
.. versionadded:: 4.2
158-
The ``setColumnMaxWidth()`` method was introduced in Symfony 4.2.
159-
160153
The table style can be changed to any built-in styles via
161154
:method:`Symfony\\Component\\Console\\Helper\\Table::setStyle`::
162155

components/dom_crawler.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@ Get all the direct child nodes matching a CSS selector::
186186

187187
$crawler->filter('body')->children('p.lorem');
188188

189-
.. versionadded:: 4.2
190-
The optional selector in ``children($selector)`` method was introduced in Symfony 4.2.
191-
192189
.. note::
193190

194191
All the traversal methods return a new :class:`Symfony\\Component\\DomCrawler\\Crawler`

components/dotenv.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ The ``load()`` method never overwrites existing environment variables. Use the
6464
// ...
6565
$dotenv->overload(__DIR__.'/.env');
6666

67-
.. versionadded:: 4.2
68-
The ``Dotenv::overload()`` method was introduced in Symfony 4.2.
69-
7067
You should never store a ``.env`` file in your code repository as it might
7168
contain sensitive information; create a ``.env.dist`` file with sensible
7269
defaults instead.

components/finder.rst

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,6 @@ Sort the result by name or by type (directories first, then files)::
175175
as its argument to use PHP's `natural sort order`_ algorithm instead (e.g.
176176
``file1.txt``, ``file2.txt``, ``file10.txt``).
177177

178-
.. versionadded:: 4.2
179-
The option to use the natural sort order was introduced in Symfony 4.2.
180-
181178
Sort the files and directories by the last accessed, changed or modified time::
182179

183180
$finder->sortByAccessedTime();
@@ -197,9 +194,6 @@ You can reverse any sorting by using the ``reverseSorting()`` method::
197194
// results will be sorted "Z to A" instead of the default "A to Z"
198195
$finder->sortByName()->reverseSorting();
199196

200-
.. versionadded:: 4.2
201-
The ``reverseSorting()`` method was introduced in Symfony 4.2.
202-
203197
.. note::
204198

205199
Notice that the ``sort*`` methods need to get all matching elements to do
@@ -236,10 +230,6 @@ Multiple filenames can be excluded by chaining calls or passing an array::
236230
// same as above
237231
$finder->files()->notName(array('*.rb', '*.py'));
238232

239-
.. versionadded:: 4.2
240-
Support for passing arrays to ``name()`` and ``notName()`` was introduced
241-
in Symfony 4.2
242-
243233
File Contents
244234
~~~~~~~~~~~~~
245235

@@ -282,9 +272,6 @@ Multiple paths can be defined by chaining calls or passing an array::
282272
// same as above
283273
$finder->path(array('data', 'foo/bar'));
284274

285-
.. versionadded:: 4.2
286-
Support for passing arrays to ``path()`` was introduced in Symfony 4.2
287-
288275
Internally, strings are converted into regular expressions by escaping slashes
289276
and adding delimiters:
290277

@@ -323,9 +310,6 @@ Restrict by a size range by chaining calls or passing an array::
323310
// same as above
324311
$finder->files()->size(array('>= 1K', '<= 2K'));
325312

326-
.. versionadded:: 4.2
327-
Support for passing arrays to ``size()`` was introduced in Symfony 4.2
328-
329313
The comparison operator can be any of the following: ``>``, ``>=``, ``<``, ``<=``,
330314
``==``, ``!=``.
331315

@@ -348,9 +332,6 @@ Restrict by a date range by chaining calls or passing an array::
348332
// same as above
349333
$finder->date(array('>= 2018-01-01', '<= 2018-12-31'));
350334

351-
.. versionadded:: 4.2
352-
Support for passing arrays to ``date()`` was introduced in Symfony 4.2
353-
354335
The comparison operator can be any of the following: ``>``, ``>=``, ``<``, ``<=``,
355336
``==``. You can also use ``since`` or ``after`` as an alias for ``>``, and
356337
``until`` or ``before`` as an alias for ``<``.
@@ -373,9 +354,6 @@ Restrict by a depth range by chaining calls or passing an array::
373354
// same as above
374355
$finder->depth(array('> 2', '< 5'));
375356

376-
.. versionadded:: 4.2
377-
Support for passing arrays to ``depth()`` was introduced in Symfony 4.2
378-
379357
Custom Filtering
380358
~~~~~~~~~~~~~~~~
381359

components/form.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -758,9 +758,6 @@ method to access the list of errors. It returns a
758758
Clearing Form Errors
759759
~~~~~~~~~~~~~~~~~~~~
760760

761-
.. versionadded:: 4.2
762-
The ``clearErrors()`` method was introduced in Symfony 4.2.
763-
764761
Any errors can be manually cleared using the
765762
:method:`Symfony\\Component\\Form\\ClearableErrorsInterface::clearErrors`
766763
method. This is useful when you'd like to validate the form without showing

components/http_foundation.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,6 @@ abstracts the hard work behind a simple API::
551551

552552
$response->headers->set('Content-Disposition', $disposition);
553553

554-
.. versionadded:: 4.2
555-
The static ``HeaderUtils::makeDisposition()`` method was introduced in Symfony 4.2.
556-
557554
Alternatively, if you are serving a static file, you can use a
558555
:class:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse`::
559556

components/ldap.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,4 @@ Possible operation types are ``LDAP_MODIFY_BATCH_ADD``, ``LDAP_MODIFY_BATCH_REMO
166166
``$values`` must be ``NULL`` when using ``LDAP_MODIFY_BATCH_REMOVE_ALL``
167167
operation type.
168168

169-
.. versionadded:: 4.2
170-
The ``applyOperations()`` method was introduced in Symfony 4.2.
171-
172169
.. _Packagist: https://packagist.org/packages/symfony/ldap

components/lock.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,6 @@ support blocking, and expects a TTL to avoid stalled locks::
220220
PdoStore
221221
~~~~~~~~
222222

223-
.. versionadded:: 4.2
224-
The PdoStore was introduced Symfony 4.2.
225-
226223
The PdoStore saves locks in an SQL database. It requires a `PDO`_ connection, a
227224
`Doctrine DBAL Connection`_, or a `Data Source Name (DSN)`_. This store does not
228225
support blocking, and expects a TTL to avoid stalled locks::
@@ -326,9 +323,6 @@ the stores.
326323
ZookeeperStore
327324
~~~~~~~~~~~~~~
328325

329-
.. versionadded:: 4.2
330-
The ZookeeperStore was introduced in Symfony 4.2.
331-
332326
The ZookeeperStore saves locks on a `ZooKeeper`_ server. It requires a ZooKeeper
333327
connection implementing the ``\Zookeeper`` class. This store does not
334328
support blocking and expiration but the lock is automatically released when the

components/options_resolver.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -637,9 +637,6 @@ let you find out which options are defined::
637637
Nested Options
638638
~~~~~~~~~~~~~~
639639

640-
.. versionadded:: 4.2
641-
The support of nested options was introduced in Symfony 4.2.
642-
643640
Suppose you have an option named ``spool`` which has two sub-options ``type``
644641
and ``path``. Instead of defining it as a simple array of values, you can pass a
645642
closure as the default value of the ``spool`` option with a
@@ -732,9 +729,6 @@ In same way, parent options can access to the nested options as normal arrays::
732729
Deprecating the Option
733730
~~~~~~~~~~~~~~~~~~~~~~
734731

735-
.. versionadded:: 4.2
736-
The ``setDeprecated()`` method was introduced in Symfony 4.2.
737-
738732
Once an option is outdated or you decided not to maintain it anymore, you can
739733
deprecate it using the :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setDeprecated`
740734
method::

components/phpunit_bridge.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,6 @@ class autoloading time. This can be disabled with the ``debug-class-loader`` opt
248248
</listener>
249249
</listeners>
250250
251-
.. versionadded:: 4.2
252-
The ``DebugClassLoader`` integration was introduced in Symfony 4.2.
253-
254251
Write Assertions about Deprecations
255252
-----------------------------------
256253

components/process.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ with a non-zero code)::
100100
Using Features From the OS Shell
101101
--------------------------------
102102

103-
.. versionadded:: 4.2
104-
105-
The ``fromShellCommandline()`` static method was introduced in Symfony 4.2.
106-
107103
Using array of arguments is the recommended way to define commands. This
108104
saves you from any escaping and allows sending signals seamlessly
109105
(e.g. to stop processes before completion)::
@@ -240,9 +236,6 @@ process and checks its output to wait until its fully initialized::
240236

241237
// ... do things after the process is ready
242238

243-
.. versionadded:: 4.2
244-
The ``waitUntil()`` method was introduced in Symfony 4.2.
245-
246239
Streaming to the Standard Input of a Process
247240
--------------------------------------------
248241

components/property_info.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ provide it with a set of information extractors.
7777
$class = YourAwesomeCoolClass::class;
7878
$properties = $propertyInfo->getProperties($class);
7979
80-
.. versionadded:: 4.2
81-
:class:`Symfony\\Component\\PropertyInfo\\PropertyInitializableExtractorInterface`
82-
was introduced in Symfony 4.2.
83-
8480
Extractor Ordering
8581
~~~~~~~~~~~~~~~~~~
8682

@@ -490,11 +486,6 @@ with the ``property_info`` service in the Symfony Framework.
490486
// Type information.
491487
$doctrineExtractor->getTypes($class, $property);
492488
493-
.. versionadded:: 4.2
494-
The option to pass Doctrine's EntityManager to ``DoctrineExtractor`` was
495-
introduced in Symfony 4.2. Previously you needed to pass the class metadata
496-
factory associated to the EntityManager.
497-
498489
.. _`components-property-information-extractors-creation`:
499490

500491
Creating Your Own Extractors

components/serializer.rst

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,6 @@ and :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer`::
487487
:class:`Symfony\\Component\\Serializer\\NameConverter\\AdvancedNameConverterInterface`
488488
to access to the current class name, format and context.
489489

490-
.. versionadded:: 4.2
491-
The ``AdvancedNameConverterInterface`` interface was introduced in Symfony 4.2.
492-
493490
.. _using-camelized-method-names-for-underscored-attributes:
494491

495492
CamelCase to snake_case
@@ -645,10 +642,6 @@ When serializing, you can set a callback to format a specific object property::
645642
$serializer->serialize($person, 'json');
646643
// Output: {"name":"cordoval", "age": 34, "createdAt": "2014-03-22T09:43:12-0500"}
647644

648-
.. versionadded:: 4.2
649-
The ``$outerObject``, ``$attributeName``, ``$format`` and ``$context``
650-
parameters of the callback were introduced in Symfony 4.2.
651-
652645
.. _component-serializer-normalizers:
653646

654647
Normalizers
@@ -844,10 +837,6 @@ to ``true``::
844837
$result = $normalizer->normalize($dummy, 'json', ['skip_null_values' => true]);
845838
// ['bar' => 'notNull']
846839

847-
.. versionadded:: 4.2
848-
849-
The ``skip_null_values`` option was introduced in Symfony 4.2.
850-
851840
.. _component-serializer-handling-circular-references:
852841

853842
Handling Circular References
@@ -943,10 +932,6 @@ having unique identifiers::
943932
var_dump($serializer->serialize($org, 'json'));
944933
// {"name":"Les-Tilleuls.coop","members":[{"name":"K\u00e9vin", organization: "Les-Tilleuls.coop"}]}
945934

946-
.. versionadded:: 4.2
947-
The ``$format`` and ``$context`` parameters of ``setCircularReferenceHandler()``
948-
were introduced in Symfony 4.2.
949-
950935
Handling Serialization Depth
951936
----------------------------
952937

@@ -1093,11 +1078,6 @@ having unique identifiers::
10931078
);
10941079
*/
10951080

1096-
.. versionadded:: 4.2
1097-
1098-
The ``$outerObject``, ``$attributeName``, ``$format`` and ``$context``
1099-
parameters of ``setMaxDepthHandler()`` were introduced in Symfony 4.2.
1100-
11011081
Handling Arrays
11021082
---------------
11031083

components/translation.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ example, assume you're trying to translate into the ``es_AR`` locale:
177177
#. If the translation still isn't found, the translator uses the one or more
178178
fallback locales set explicitly on the translator.
179179

180-
.. versionadded:: 4.2
181-
The use of parent locales was introduced in Symfony 4.2.
182-
183180
For (3), the fallback locales can be set by calling
184181
:method:`Symfony\\Component\\Translation\\Translator::setFallbackLocales`::
185182

components/var_dumper.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ current PHP SAPI:
7070
``VAR_DUMPER_FORMAT`` environment variable and setting its value to either
7171
``html`` or ``cli``.
7272

73-
.. versionadded:: 4.2
74-
The ``VAR_DUMPER_FORMAT`` env var was introduced in Symfony 4.2.
75-
7673
.. note::
7774

7875
If you want to catch the dump output as a string, please read the

components/yaml.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,22 +410,19 @@ Then, execute the script for validating contents:
410410
411411
# validates a single file
412412
$ php lint.php path/to/file.yaml
413-
413+
414414
# or validates multiple files
415-
$ php lint.php path/to/file1.yaml path/to/file2.yaml
415+
$ php lint.php path/to/file1.yaml path/to/file2.yaml
416416
417417
# or all the files in a directory
418418
$ php lint.php path/to/directory
419-
419+
420420
# or all the files in multiple directories
421421
$ php lint.php path/to/directory1 path/to/directory2
422422
423423
# or contents passed to STDIN
424424
$ cat path/to/file.yaml | php lint.php
425425
426-
.. versionadded:: 4.2
427-
The feature to lint multiple files and directories was introduced in Symfony 4.2.
428-
429426
The result is written to STDOUT and uses a plain text format by default.
430427
Add the ``--format`` option to get the output in JSON format:
431428

0 commit comments

Comments
 (0)