Skip to content

Commit e19caed

Browse files
committed
removed more obsolete versionadded directives
1 parent 3c767f6 commit e19caed

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

+0
-351
lines changed

bundles/extension.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,6 @@ Symfony creates a big ``classes.php`` file in the cache directory to aggregate
139139
the contents of the PHP classes that are used in every request. This reduces the
140140
I/O operations and increases the application performance.
141141

142-
.. versionadded:: 3.2
143-
144-
The ``addAnnotatedClassesToCompile()`` method was added in Symfony 3.2.
145-
146142
Your bundles can also add their own classes into this file thanks to the
147143
``addClassesToCompile()`` and ``addAnnotatedClassesToCompile()`` methods (both
148144
work in the same way, but the second one is for classes that contain PHP
@@ -176,10 +172,6 @@ class names::
176172
If some class extends from other classes, all its parents are automatically
177173
included in the list of classes to compile.
178174

179-
.. versionadded:: 3.2
180-
181-
The option to add classes to compile using patterns was introduced in Symfony 3.2.
182-
183175
The classes to compile can also be added using file path patterns::
184176

185177
// ...

components/cache.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ The Cache Component
1414
adapters for the most common caching backends, including proxies for adapting
1515
from/to `Doctrine Cache`_.
1616

17-
.. versionadded:: 3.3
18-
19-
The PSR-16 "Simple Cache" implementation was introduced in Symfony 3.3.
20-
2117
Installation
2218
------------
2319

components/cache/adapters/memcached_adapter.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
Memcached Cache Adapter
88
=======================
99

10-
.. versionadded:: 3.3
11-
12-
The Memcached adapter was introduced in Symfony 3.3.
13-
1410
This adapter stores the values in-memory using one (or more) `Memcached server`_
1511
instances. Unlike the :ref:`APCu adapter <apcu-adapter>`, and similarly to the
1612
:ref:`Redis adapter <redis-adapter>`, it is not limited to the current server's

components/cache/adapters/pdo_doctrine_dbal_adapter.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
PDO & Doctrine DBAL Cache Adapter
88
=================================
99

10-
.. versionadded:: 3.2
11-
12-
The PDO & Doctrine DBAL adapter was introduced in Symfony 3.2.
13-
1410
This adapter stores the cache items in an SQL database. It requires a `PDO`_,
1511
`Doctrine DBAL Connection`_, or `Data Source Name (DSN)`_ as its first parameter, and
1612
optionally a namespace, default cache lifetime, and options array as its second,

components/cache/cache_invalidation.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ The Symfony Cache component provides two mechanisms to help solving this problem
2020
Using Cache Tags
2121
----------------
2222

23-
.. versionadded:: 3.2
24-
25-
Tags-based invalidation was introduced in Symfony 3.2.
26-
2723
To benefit from tags-based invalidation, you need to attach the proper tags to
2824
each cached item. Each tag is a plain string identifier that you can use at any
2925
time to trigger the removal of all items associated with this tag.

components/config/definition.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,22 +187,11 @@ Or you may define a prototype for each node inside an array node::
187187
->end()
188188
;
189189

190-
.. versionadded:: 3.3
191-
192-
The ``arrayPrototype()`` method (and the related ``booleanPrototype()``
193-
``integerPrototype()``, ``floatPrototype()``, ``scalarPrototype()`` and
194-
``enumPrototype()``) was introduced in Symfony 3.3. In previous versions,
195-
you needed to use ``prototype('array')``, ``prototype('boolean')``, etc.
196-
197190
A prototype can be used to add a definition which may be repeated many times
198191
inside the current node. According to the prototype definition in the example
199192
above, it is possible to have multiple connection arrays (containing a ``driver``,
200193
``host``, etc.).
201194

202-
.. versionadded:: 3.3
203-
204-
The ``castToArray()`` helper was added in Symfony 3.3.
205-
206195
Sometimes, to improve the user experience of your application or bundle, you may
207196
allow to use a simple string or numeric value where an array value is required.
208197
Use the ``castToArray()`` helper to turn those variables into arrays::

components/console/logger.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ constructor::
108108
Errors
109109
------
110110

111-
.. versionadded:: 3.2
112-
113-
The ``hasErrored()`` method was introduced in Symfony 3.2.
114-
115111
The Console logger includes a ``hasErrored()`` method which returns ``true`` as
116112
soon as any error message has been logged during the execution of the command.
117113
This is useful to decide which status code to return as the result of executing

components/dependency_injection/compilation.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,6 @@ been run, use::
423423
PassConfig::TYPE_AFTER_REMOVING
424424
);
425425

426-
.. versionadded:: 3.2
427-
428-
The option to prioritize compiler passes was added in Symfony 3.2.
429-
430426
You can also control the order in which compiler passes are run for each
431427
compilation phase. Use the optional third argument of ``addCompilerPass()`` to
432428
set the priority as an integer number. The default priority is ``0`` and the higher

components/dom_crawler.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,6 @@ and :phpclass:`DOMNode` objects::
300300
Expression Evaluation
301301
~~~~~~~~~~~~~~~~~~~~~
302302

303-
.. versionadded:: 3.2
304-
305-
The :method:`Symfony\\Component\\DomCrawler\\Crawler::evaluate` method was
306-
introduced in Symfony 3.2.
307-
308303
The ``evaluate()`` method evaluates the given XPath expression. The return
309304
value depends on the XPath expression. If the expression evaluates to a scalar
310305
value (e.g. HTML attributes), an array of results will be returned. If the
@@ -444,13 +439,6 @@ than just return the ``action`` attribute of the form. If the form method
444439
is GET, then it mimics the browser's behavior and returns the ``action``
445440
attribute followed by a query string of all of the form's values.
446441

447-
.. versionadded:: 3.3
448-
449-
Starting from Symfony 3.3, the optional ``formaction`` and ``formmethod``
450-
button attributes are supported. The ``getUri()`` and ``getMethod()``
451-
methods take into account those attributes to always return the right action
452-
and method depending on the button used to get the form.
453-
454442
You can virtually set and get values on the form::
455443

456444
// sets values on the form internally

components/dotenv.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ The Dotenv Component
88
The Dotenv Component parses ``.env`` files to make environment variables
99
stored in them accessible via ``getenv()``, ``$_ENV`` or ``$_SERVER``.
1010

11-
.. versionadded:: 3.3
12-
13-
The Dotenv component was introduced in Symfony 3.3.
14-
1511
Installation
1612
------------
1713

components/expression_language/caching.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ ones and injecting this using the constructor::
3737
$cache = new RedisAdapter(...);
3838
$expressionLanguage = new ExpressionLanguage($cache);
3939

40-
.. versionadded:: 3.2
41-
42-
PSR-6 caching support was introduced in Symfony 3.2. Prior to version 3.2,
43-
a
44-
:class:`Symfony\\Component\\ExpressionLanguage\\ParserCache\\ParserCacheInterface`
45-
instance had to be injected.
46-
4740
.. seealso::
4841

4942
See the :doc:`/components/cache` documentation for more information about

components/expression_language/extending.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ register::
100100

101101
ExpressionFunction::fromPhp('My\strtoupper', 'my_strtoupper');
102102

103-
.. versionadded:: 3.3
104-
105-
The ``ExpressionFunction::fromPhp()`` method was introduced in Symfony 3.3.
106-
107103
You can register providers using
108104
:method:`Symfony\\Component\\ExpressionLanguage\\ExpressionLanguage::registerProvider`
109105
or by using the second argument of the constructor::

components/filesystem.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,6 @@ support symbolic links, a third boolean argument is available::
212212
readlink
213213
~~~~~~~~
214214

215-
.. versionadded:: 3.2
216-
217-
The :method:`Symfony\\Component\\Filesystem\\Filesystem::readlink` method was introduced in Symfony 3.2.
218-
219215
:method:`Symfony\\Component\\Filesystem\\Filesystem::readlink` read links targets.
220216

221217
PHP's ``readlink()`` function returns the target of a symbolic link. However, its behavior
@@ -307,11 +303,6 @@ The ``file.txt`` file contains ``Hello World`` now.
307303
appendToFile
308304
~~~~~~~~~~~~
309305

310-
.. versionadded:: 3.3
311-
312-
The :method:`Symfony\\Component\\Filesystem\\Filesystem::appendToFile`
313-
method was introduced in Symfony 3.3.
314-
315306
:method:`Symfony\\Component\\Filesystem\\Filesystem::appendToFile` adds new
316307
contents at the end of some file::
317308

components/http_foundation.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,6 @@ Note you can create a
390390
:class:`Symfony\\Component\\HttpFoundation\\Cookie` object from a raw header
391391
value using :method:`Symfony\\Component\\HttpFoundation\\Cookie::fromString`.
392392

393-
.. versionadded:: 3.3
394-
395-
The ``Cookie::fromString()`` method was introduced in Symfony 3.3.
396-
397393
Managing the HTTP Cache
398394
~~~~~~~~~~~~~~~~~~~~~~~
399395

@@ -539,10 +535,6 @@ It is possible to delete the file after the request is sent with the
539535
:method:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse::deleteFileAfterSend` method.
540536
Please note that this will not work when the ``X-Sendfile`` header is set.
541537

542-
.. versionadded:: 3.3
543-
544-
The ``Stream`` class was introduced in Symfony 3.3.
545-
546538
If the size of the served file is unknown (e.g. because it's being generated on the fly,
547539
or because a PHP stream filter is registered on it, etc.), you can pass a ``Stream``
548540
instance to ``BinaryFileResponse``. This will disable ``Range`` and ``Content-Length``
@@ -594,11 +586,6 @@ class, which can make this even easier::
594586
// if the data to send is already encoded in JSON
595587
$response = JsonResponse::fromJsonString('{ "data": 123 }');
596588

597-
.. versionadded:: 3.2
598-
599-
The :method:`Symfony\\Component\\HttpFoundation\\JsonResponse::fromJsonString`
600-
method was added in Symfony 3.2.
601-
602589
The ``JsonResponse`` class sets the ``Content-Type`` header to
603590
``application/json`` and encodes your data to JSON when needed.
604591

components/phpunit_bridge.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,6 @@ the namespaces of the tested classes in your phpunit.xml.dist
540540
Modified PHPUnit script
541541
-----------------------
542542

543-
.. versionadded:: 3.2
544-
545-
This modified PHPUnit script was introduced in the 3.2 version of
546-
this component.
547-
548543
This bridge provides a modified version of PHPUnit that you can call by using
549544
its ``bin/simple-phpunit`` command. It has the following features:
550545

components/process.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ for new output before going to the next iteration::
7979
echo $data."\n";
8080
}
8181

82-
.. versionadded:: 3.2
83-
84-
The ``getIterator()`` method was introduced in Symfony 3.2.
85-
8682
The ``mustRun()`` method is identical to ``run()``, except that it will throw
8783
a :class:`Symfony\\Component\\Process\\Exception\\ProcessFailedException`
8884
if the process couldn't be executed successfully (i.e. the process exited
@@ -103,11 +99,6 @@ with a non-zero code)::
10399

104100
.. tip::
105101

106-
.. versionadded:: 3.3
107-
108-
The ability to define commands as arrays of arguments was introduced in
109-
Symfony 3.3.
110-
111102
Using array of arguments is the recommended way to define commands. This
112103
saves you from any escaping and allows sending signals seamlessly
113104
(e.g. to stop processes before completion.)::
@@ -419,11 +410,6 @@ Use :method:`Symfony\\Component\\Process\\Process::disableOutput` and
419410
However, it is possible to pass a callback to the ``start``, ``run`` or ``mustRun``
420411
methods to handle process output in a streaming fashion.
421412

422-
.. versionadded:: 3.1
423-
424-
The ability to pass a callback to these methods when output is disabled
425-
was added in Symfony 3.1.
426-
427413
Finding the Executable PHP Binary
428414
---------------------------------
429415

components/property_info.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,6 @@ and plural property names::
273273
$propertyInfo->isWritable(SomeClass::class, 'analyses'); // returns true
274274
$propertyInfo->isWritable(SomeClass::class, 'feet'); // returns true
275275

276-
.. versionadded:: 3.2
277-
278-
The support of adder/remover methods was introduced in Symfony 3.2.
279-
280276
.. tip::
281277

282278
The main :class:`Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor`

components/routing.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,6 @@ automatically in the background if you want to use it. A basic example of the
383383
Unicode Routing Support
384384
~~~~~~~~~~~~~~~~~~~~~~~
385385

386-
.. versionadded:: 3.2
387-
388-
UTF-8 support for route paths and requirements was introduced in
389-
Symfony 3.2.
390-
391386
The Routing component supports UTF-8 characters in route paths and requirements.
392387
Thanks to the ``utf8`` route option, you can make Symfony match and generate
393388
routes with UTF-8 characters:

components/security/firewall.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ further than allowed.
9191
Firewall Config
9292
~~~~~~~~~~~~~~~
9393

94-
.. versionadded:: 3.2
95-
96-
The ``FirewallConfig`` class was introduced in Symfony 3.2.
97-
9894
The information about a given firewall, such as its name, provider, context,
9995
entry point and access denied URL, is provided by instances of the
10096
:class:`Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig` class.

components/serializer.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,6 @@ needs three parameters:
165165
#. The name of the class this information will be decoded to
166166
#. The encoder used to convert that information into an array
167167

168-
.. versionadded:: 3.3
169-
170-
Support for the ``allow_extra_attributes`` key in the context was introduced
171-
in Symfony 3.3.
172-
173168
By default, additional attributes that are not mapped to the denormalized object
174169
will be ignored by the Serializer component. If you prefer to throw an exception
175170
when this happens, set the ``allow_extra_attributes`` context option to
@@ -624,11 +619,6 @@ There are several types of normalizers available:
624619
:phpclass:`DateTime` and :phpclass:`DateTimeImmutable`) into strings.
625620
By default it uses the RFC3339_ format.
626621

627-
.. versionadded:: 3.2
628-
629-
Support for specifying datetime format during denormalization was
630-
introduced in the ``DateTimeNormalizer`` in Symfony 3.2.
631-
632622
:class:`Symfony\\Component\\Serializer\\Normalizer\\DataUriNormalizer`
633623
This normalizer converts :phpclass:`SplFileInfo` objects into a data URI
634624
string (``data:...``) such that files can be embedded into serialized data.
@@ -664,10 +654,6 @@ The Serializer component supports many formats out of the box:
664654
All these encoders are enabled by default when using the Symfony Standard Edition
665655
with the serializer enabled.
666656

667-
.. versionadded:: 3.2
668-
669-
The ``YamlEncoder`` and ``CsvEncoder`` encoders were introduced in Symfony 3.2
670-
671657
.. _component-serializer-handling-circular-references:
672658

673659
Handling Circular References

components/translation/usage.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -271,21 +271,6 @@ The second argument (``10`` in this example) is the *number* of objects being
271271
described and is used to determine which translation to use and also to populate
272272
the ``%count%`` placeholder.
273273

274-
.. versionadded:: 3.2
275-
276-
Before Symfony 3.2, the placeholder used to select the plural (``%count%``
277-
in this example) must be included in the third optional argument of the
278-
``transChoice()`` method::
279-
280-
$translator->transChoice(
281-
'There is one apple|There are %count% apples',
282-
10,
283-
['%count%' => 10]
284-
);
285-
286-
Starting from Symfony 3.2, when the only placeholder is ``%count%``, you
287-
don't have to pass this third argument.
288-
289274
Based on the given number, the translator chooses the right plural form.
290275
In English, most words have a singular form when there is exactly one object
291276
and a plural form for all other numbers (0, 2, 3...). So, if ``count`` is

components/validator.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ If you have lots of validation errors, you can filter them by error code::
6464
// handle this specific error (display some message, send an email, etc.)
6565
}
6666

67-
.. versionadded:: 3.3
68-
69-
The ``findByCodes()`` method was introduced in Symfony 3.3.
70-
7167
Retrieving a Validator Instance
7268
-------------------------------
7369

components/var_dumper.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ option. Read more about this and other options in
113113

114114
.. tip::
115115

116-
.. versionadded:: 3.3
117-
118-
The local search box was introduced in Symfony 3.3.
119-
120116
If the dumped contents are complex, consider using the local search box to
121117
look for specific variables or values. First, click anywhere on the dumped
122118
contents and then press ``Ctrl. + F`` or ``Cmd. + F`` to make the local

0 commit comments

Comments
 (0)