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

0 commit comments

Comments
 (0)