Skip to content

Commit 52d020c

Browse files
committed
Removed all 2.x versionadded directives
1 parent 266f7bf commit 52d020c

File tree

89 files changed

+0
-489
lines changed

Some content is hidden

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

89 files changed

+0
-489
lines changed

book/forms.rst

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,9 @@ You've also assigned each a "type" (e.g. ``TextType`` and ``DateType``),
123123
represented by its fully qualified class name. Among other things, it determines
124124
which HTML form tag(s) is rendered for that field.
125125

126-
.. versionadded:: 2.8
127-
To denote the form type, you have to use the fully qualified class name - like
128-
``TextType::class`` in PHP 5.5+ or ``Symfony\Component\Form\Extension\Core\Type\TextType``.
129-
Before Symfony 2.8, you could use an alias for each type like ``text`` or
130-
``date``. The old alias syntax will still work until Symfony 3.0. For more details,
131-
see the `2.8 UPGRADE Log`_.
132-
133126
Finally, you added a submit button with a custom label for submitting the form to
134127
the server.
135128

136-
.. versionadded:: 2.3
137-
Support for submit buttons was introduced in Symfony 2.3. Before that, you had
138-
to add buttons to the form's HTML manually.
139-
140129
Symfony comes with many built-in types that will be discussed shortly
141130
(see :ref:`book-forms-type-reference`).
142131

@@ -259,12 +248,6 @@ your controller::
259248
is called. Otherwise, changes done in the ``*_SUBMIT`` events aren't applied to the
260249
view (like validation errors).
261250

262-
.. versionadded:: 2.3
263-
The :method:`Symfony\\Component\\Form\\FormInterface::handleRequest` method
264-
was introduced in Symfony 2.3. Previously, the ``$request`` was passed
265-
to the ``submit`` method - a strategy which is deprecated and will be
266-
removed in Symfony 3.0. For details on that method, see :ref:`cookbook-form-submit-request`.
267-
268251
This controller follows a common pattern for handling forms, and has three
269252
possible paths:
270253

@@ -313,9 +296,6 @@ possible paths:
313296
Submitting Forms with Multiple Buttons
314297
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
315298

316-
.. versionadded:: 2.3
317-
Support for buttons in forms was introduced in Symfony 2.3.
318-
319299
When your form contains more than one submit button, you will want to check
320300
which of the buttons was clicked to adapt the program flow in your controller.
321301
To do this, add a second button with the caption "Save and add" to your form::
@@ -491,10 +471,6 @@ you'll need to specify which validation group(s) your form should use::
491471
'validation_groups' => array('registration'),
492472
))->add(...);
493473

494-
.. versionadded:: 2.7
495-
The ``configureOptions()`` method was introduced in Symfony 2.7. Previously,
496-
the method was called ``setDefaultOptions()``.
497-
498474
If you're creating :ref:`form classes <book-form-creating-form-classes>` (a
499475
good practice), then you'll need to add the following to the ``configureOptions()``
500476
method::
@@ -517,9 +493,6 @@ be used to validate the underlying object.
517493
Disabling Validation
518494
~~~~~~~~~~~~~~~~~~~~
519495

520-
.. versionadded:: 2.3
521-
The ability to set ``validation_groups`` to false was introduced in Symfony 2.3.
522-
523496
Sometimes it is useful to suppress the validation of a form altogether. For
524497
these cases you can set the ``validation_groups`` option to ``false``::
525498

@@ -620,9 +593,6 @@ work in the book section about :ref:`validation groups <book-validation-validati
620593
Groups based on the Clicked Button
621594
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
622595

623-
.. versionadded:: 2.3
624-
Support for buttons in forms was introduced in Symfony 2.3.
625-
626596
When your form contains multiple submit buttons, you can change the validation
627597
group depending on which button is used to submit the form. For example,
628598
consider a form in a wizard that lets you advance to the next step or go back

book/routing.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,10 +1543,6 @@ a template helper function:
15431543
Read this blog post.
15441544
</a>
15451545

1546-
.. versionadded:: 2.8
1547-
The ``path()`` PHP templating helper was introduced in Symfony 2.8. Prior
1548-
to 2.8, you had to use the ``generate()`` helper method.
1549-
15501546
.. index::
15511547
single: Routing; Absolute URLs
15521548

@@ -1581,12 +1577,6 @@ URL) rather than the ``path()`` function (which generates a relative URL):
15811577
Read this blog post.
15821578
</a>
15831579

1584-
.. versionadded:: 2.8
1585-
The ``url()`` PHP templating helper was introduced in Symfony 2.8. Prior
1586-
to 2.8, you had to use the ``generate()`` helper method with
1587-
``Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_URL``
1588-
passed as the third argument.
1589-
15901580
.. note::
15911581

15921582
The host that's used when generating an absolute URL is automatically

book/templating.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,6 @@ you set `with_context`_ to false).
579579
maps (i.e. an array with named keys). If you needed to pass in multiple
580580
elements, it would look like this: ``{'foo': foo, 'bar': bar}``.
581581

582-
.. versionadded:: 2.3
583-
The `include() function`_ is available since Symfony 2.3. Prior, the
584-
`{% include %} tag`_ was used.
585-
586582
.. index::
587583
single: Templating; Embedding action
588584

book/testing.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,6 @@ The Client supports many operations that can be done in a real browser::
420420
Accessing Internal Objects
421421
~~~~~~~~~~~~~~~~~~~~~~~~~~
422422

423-
.. versionadded:: 2.3
424-
The :method:`Symfony\\Component\\BrowserKit\\Client::getInternalRequest`
425-
and :method:`Symfony\\Component\\BrowserKit\\Client::getInternalResponse`
426-
methods were introduced in Symfony 2.3.
427-
428423
If you use the client to test your application, you might want to access the
429424
client's internal objects::
430425

book/validation.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ following:
103103
Protected and private properties can also be validated, as well as "getter"
104104
methods (see :ref:`validator-constraint-targets`).
105105

106-
.. versionadded:: 2.7
107-
As of Symfony 2.7, XML and Yaml constraint files located in the
108-
``Resources/config/validation`` sub-directory of a bundle are loaded. Prior
109-
to 2.7, only ``Resources/config/validation.yml`` (or ``.xml``) were loaded.
110-
111106
.. index::
112107
single: Validation; Using the validator
113108

components/console/events.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
Using Events
55
============
66

7-
.. versionadded:: 2.3
8-
Console events were introduced in Symfony 2.3.
9-
107
The Application class of the Console component allows you to optionally hook
118
into the lifecycle of a console application via events. Instead of reinventing
129
the wheel, it uses the Symfony EventDispatcher component to do the work::

components/console/helpers/dialoghelper.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ or the maximum attempts is reached (which you can define in the fifth
208208
argument). The default value for the attempts is ``false``, which means infinite
209209
attempts. You can define your own error message in the sixth argument.
210210

211-
.. versionadded:: 2.3
212-
Multiselect support was introduced in Symfony 2.3.
213-
214211
Multiple Choices
215212
................
216213

components/console/helpers/progresshelper.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
Progress Helper
55
===============
66

7-
.. versionadded:: 2.3
8-
The ``setCurrent`` method was introduced in Symfony 2.3.
9-
107
.. caution::
118

129
The Progress Helper was deprecated in Symfony 2.5 and will be removed in

components/console/helpers/table.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ Here is a full list of things you can customize:
147147
Spanning Multiple Columns and Rows
148148
----------------------------------
149149

150-
.. versionadded:: 2.7
151-
Spanning multiple columns and rows was introduced in Symfony 2.7.
152-
153150
To make a table cell that spans multiple columns you can use a :class:`Symfony\\Component\\Console\\Helper\\TableCell`::
154151

155152
use Symfony\Component\Console\Helper\Table;

components/console/helpers/tablehelper.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
Table Helper
55
============
66

7-
.. versionadded:: 2.3
8-
The ``table`` helper was introduced in Symfony 2.3.
9-
107
.. caution::
118

129
The Table Helper was deprecated in Symfony 2.5 and will be removed in

components/console/introduction.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,6 @@ You can also set these colors and options inside the tagname::
200200
Verbosity Levels
201201
~~~~~~~~~~~~~~~~
202202

203-
.. versionadded:: 2.3
204-
The ``VERBOSITY_VERY_VERBOSE`` and ``VERBOSITY_DEBUG`` constants were introduced
205-
in version 2.3
206-
207203
The console has five verbosity levels. These are defined in the
208204
:class:`Symfony\\Component\\Console\\Output\\OutputInterface`:
209205

components/css_selector.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ document.
4646
The CssSelector Component
4747
~~~~~~~~~~~~~~~~~~~~~~~~~
4848

49-
.. versionadded:: 2.8
50-
The ``CssSelectorConverter`` class was introduced in Symfony 2.8. Previously,
51-
the ``CssSelector`` class was used and ``toXPath`` was a static method.
52-
5349
The component's only goal is to convert CSS selectors to their XPath
5450
equivalents, using :method:`Symfony\\Component\\CssSelector\\CssSelectorConverter::toXPath`::
5551

components/debug/introduction.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ The Debug Component
77

88
The Debug component provides tools to ease debugging PHP code.
99

10-
.. versionadded:: 2.3
11-
The Debug component was introduced in Symfony 2.3. Previously, the classes
12-
were located in the HttpKernel component.
13-
1410
Installation
1511
------------
1612

components/dependency_injection/advanced.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,6 @@ You can change the inner service name if you want to:
219219
->setPublic(false)
220220
->setDecoratedService('foo', 'bar.wooz');
221221
222-
.. versionadded:: 2.8
223-
The ability to define the decoration priority was introduced in Symfony 2.8.
224-
Prior to Symfony 2.8, the priority depends on the order in
225-
which definitions are found.
226-
227222
If you want to apply more than one decorator to a service, you can control their
228223
order by configuring the priority of decoration, this can be any integer number
229224
(decorators with higher priorities will be applied first).
@@ -295,9 +290,6 @@ The generated code will be the following:
295290
Deprecating Services
296291
--------------------
297292

298-
.. versionadded:: 2.8
299-
The ``deprecated`` setting was introduced in Symfony 2.8.
300-
301293
Once you have decided to deprecate the use of a service (because it is outdated
302294
or you decided not to maintain it anymore), you can deprecate its definition:
303295

components/dependency_injection/compilation.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,6 @@ compilation::
331331
// ...
332332
}
333333

334-
.. versionadded:: 2.8
335-
Prior to Symfony 2.8, extensions implementing ``CompilerPassInterface``
336-
were not automatically registered. You needed to register them as explained
337-
in :ref:`the next section <components-di-separate-compiler-passes>`.
338-
339334
As ``process()`` is called *after* all extensions are loaded, it allows you to
340335
edit service definitions of other extensions as well as retrieving information
341336
about service definitions.

components/dependency_injection/lazy_services.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
Lazy Services
55
=============
66

7-
.. versionadded:: 2.3
8-
Lazy services were introduced in Symfony 2.3.
9-
107
Why Lazy Services?
118
------------------
129

components/dom_crawler.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,6 @@ Call an anonymous function on each node of the list::
223223
return $node->text();
224224
});
225225

226-
.. versionadded:: 2.3
227-
As seen here, in Symfony 2.3, the ``each`` and ``reduce`` Closure functions
228-
are passed a ``Crawler`` as the first argument. Previously, that argument
229-
was a :phpclass:`DOMNode`.
230-
231226
The anonymous function receives the node (as a Crawler) and the position as arguments.
232227
The result is an array of values returned by the anonymous function calls.
233228

components/filesystem/introduction.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,6 @@ isAbsolutePath
239239
dumpFile
240240
~~~~~~~~
241241

242-
.. versionadded:: 2.3
243-
The ``dumpFile()`` was introduced in Symfony 2.3.
244-
245242
:method:`Symfony\\Component\\Filesystem\\Filesystem::dumpFile` allows you to
246243
dump contents to a file. It does this in an atomic manner: it writes a temporary
247244
file first and then moves it to the new file location when it's finished.

components/finder.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ Exclude directories from matching with the
9595

9696
$finder->in(__DIR__)->exclude('ruby');
9797

98-
.. versionadded:: 2.3
99-
The :method:`Symfony\\Component\\Finder\\Finder::ignoreUnreadableDirs`
100-
method was introduced in Symfony 2.3.
101-
10298
It's also possible to ignore directories that you don't have permission to read::
10399

104100
$finder->ignoreUnreadableDirs()->in(__DIR__);

components/form/form_events.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,6 @@ Name ``FormEvents`` Constant Event's Data
257257
``form.post_bind`` ``FormEvents::POST_SUBMIT`` View data
258258
====================== ============================= ===============
259259

260-
.. versionadded:: 2.3
261-
Before Symfony 2.3, ``FormEvents::PRE_SUBMIT``, ``FormEvents::SUBMIT``
262-
and ``FormEvents::POST_SUBMIT`` were called ``FormEvents::PRE_BIND``,
263-
``FormEvents::BIND`` and ``FormEvents::POST_BIND``.
264-
265260
.. caution::
266261

267262
The ``FormEvents::PRE_BIND``, ``FormEvents::BIND`` and

components/form/introduction.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ factory.
6868
Request Handling
6969
~~~~~~~~~~~~~~~~
7070

71-
.. versionadded:: 2.3
72-
The ``handleRequest()`` method was introduced in Symfony 2.3.
73-
7471
To process form data, you'll need to call the :method:`Symfony\\Component\\Form\\Form::handleRequest`
7572
method::
7673

@@ -519,10 +516,6 @@ to do that in the ":ref:`form-rendering-template`" section.
519516
Changing a Form's Method and Action
520517
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
521518

522-
.. versionadded:: 2.3
523-
The ability to configure the form method and action was introduced in
524-
Symfony 2.3.
525-
526519
By default, a form is submitted to the same URI that rendered the form with
527520
an HTTP POST request. This behavior can be changed using the :ref:`form-option-action`
528521
and :ref:`form-option-method` options (the ``method`` option is also used

components/http_foundation/trusting_proxies.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ Since HTTP headers can be spoofed, Symfony does *not* trust these proxy
1919
headers by default. If you are behind a proxy, you should manually whitelist
2020
your proxy.
2121

22-
.. versionadded:: 2.3
23-
CIDR notation support was introduced in Symfony 2.3, so you can whitelist whole
24-
subnets (e.g. ``10.0.0.0/8``, ``fc00::/7``).
25-
2622
.. code-block:: php
2723
2824
use Symfony\Component\HttpFoundation\Request;

components/intl.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ The Intl Component
88
A PHP replacement layer for the C `intl extension`_ that also provides
99
access to the localization data of the `ICU library`_.
1010

11-
.. versionadded:: 2.3
12-
The Intl component was introduced in Symfony 2.3. In earlier versions of Symfony,
13-
you should use the Locale component instead.
14-
1511
.. caution::
1612

1713
The replacement layer is limited to the locale "en". If you want to use

components/process.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ are done doing other stuff::
131131
Stopping a Process
132132
------------------
133133

134-
.. versionadded:: 2.3
135-
The ``signal`` parameter of the ``stop`` method was introduced in Symfony 2.3.
136-
137134
Any asynchronous process can be stopped at any time with the
138135
:method:`Symfony\\Component\\Process\\Process::stop` method. This method takes
139136
two arguments: a timeout and a signal. Once the timeout is reached, the signal
@@ -170,10 +167,6 @@ To make your code work better on all platforms, you might want to use the
170167
$builder = new ProcessBuilder(array('ls', '-lsa'));
171168
$builder->getProcess()->run();
172169

173-
.. versionadded:: 2.3
174-
The :method:`ProcessBuilder::setPrefix<Symfony\\Component\\Process\\ProcessBuilder::setPrefix>`
175-
method was introduced in Symfony 2.3.
176-
177170
In case you are building a binary driver, you can use the
178171
:method:`Symfony\\Component\\Process\\ProcessBuilder::setPrefix` method to prefix all
179172
the generated process commands.
@@ -249,9 +242,6 @@ exceeds 3600 seconds, or the process does not produce any output for 60 seconds.
249242
Process Signals
250243
---------------
251244

252-
.. versionadded:: 2.3
253-
The ``signal`` method was introduced in Symfony 2.3.
254-
255245
When running a program asynchronously, you can send it POSIX signals with the
256246
:method:`Symfony\\Component\\Process\\Process::signal` method::
257247

@@ -275,9 +265,6 @@ When running a program asynchronously, you can send it POSIX signals with the
275265
Process Pid
276266
-----------
277267

278-
.. versionadded:: 2.3
279-
The ``getPid`` method was introduced in Symfony 2.3.
280-
281268
You can access the `pid`_ of a running process with the
282269
:method:`Symfony\\Component\\Process\\Process::getPid` method.
283270

0 commit comments

Comments
 (0)