Skip to content

Commit 77de342

Browse files
committed
Removed 2.x versionadded directives
1 parent f43e923 commit 77de342

File tree

82 files changed

+2
-470
lines changed

Some content is hidden

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

82 files changed

+2
-470
lines changed

book/forms.rst

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ other things, determines which HTML form tag(s) is rendered for that field.
122122
Finally, you added a submit button with a custom label for submitting the form to
123123
the server.
124124

125-
.. versionadded:: 2.3
126-
Support for submit buttons was introduced in Symfony 2.3. Before that, you had
127-
to add buttons to the form's HTML manually.
128-
129125
Symfony comes with many built-in types that will be discussed shortly
130126
(see :ref:`book-forms-type-reference`).
131127

@@ -240,12 +236,6 @@ controller::
240236
// ...
241237
}
242238

243-
.. versionadded:: 2.3
244-
The :method:`Symfony\\Component\\Form\\FormInterface::handleRequest` method
245-
was introduced in Symfony 2.3. Previously, the ``$request`` was passed
246-
to the ``submit`` method - a strategy which is deprecated and will be
247-
removed in Symfony 3.0. For details on that method, see :ref:`cookbook-form-submit-request`.
248-
249239
This controller follows a common pattern for handling forms, and has three
250240
possible paths:
251241

@@ -294,9 +284,6 @@ possible paths:
294284
Submitting Forms with Multiple Buttons
295285
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
296286

297-
.. versionadded:: 2.3
298-
Support for buttons in forms was introduced in Symfony 2.3.
299-
300287
When your form contains more than one submit button, you will want to check
301288
which of the buttons was clicked to adapt the program flow in your controller.
302289
To do this, add a second button with the caption "Save and add" to your form::
@@ -492,9 +479,6 @@ be used to validate the underlying object.
492479
Disabling Validation
493480
~~~~~~~~~~~~~~~~~~~~
494481

495-
.. versionadded:: 2.3
496-
The ability to set ``validation_groups`` to false was introduced in Symfony 2.3.
497-
498482
Sometimes it is useful to suppress the validation of a form altogether. For
499483
these cases you can set the ``validation_groups`` option to ``false``::
500484

@@ -593,9 +577,6 @@ work in the book section about :ref:`validation groups <book-validation-validati
593577
Groups based on the Clicked Button
594578
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
595579

596-
.. versionadded:: 2.3
597-
Support for buttons in forms was introduced in Symfony 2.3.
598-
599580
When your form contains multiple submit buttons, you can change the validation
600581
group depending on which button is used to submit the form. For example,
601582
consider a form in a wizard that lets you advance to the next step or go back
@@ -1872,11 +1853,6 @@ The answer is to setup the constraints yourself, and attach them to the individu
18721853
fields. The overall approach is covered a bit more in the :ref:`validation chapter <book-validation-raw-values>`,
18731854
but here's a short example:
18741855

1875-
.. versionadded:: 2.1
1876-
The ``constraints`` option, which accepts a single constraint or an array
1877-
of constraints (before 2.1, the option was called ``validation_constraint``,
1878-
and only accepted a single constraint) was introduced in Symfony 2.1.
1879-
18801856
.. code-block:: php
18811857
18821858
use Symfony\Component\Validator\Constraints\Length;

book/routing.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ The route is simple:
8787
8888
return $collection;
8989
90-
.. versionadded:: 2.2
91-
The ``path`` option was introduced in Symfony 2.2, ``pattern`` is used
92-
in older versions.
93-
9490
The path defined by the ``blog_show`` route acts like ``/blog/*`` where
9591
the wildcard is given the name ``slug``. For the URL ``/blog/my-blog-post``,
9692
the ``slug`` variable gets a value of ``my-blog-post``, which is available
@@ -891,10 +887,6 @@ be accomplished with the following route configuration:
891887
892888
return $collection;
893889
894-
.. versionadded:: 2.2
895-
The ``methods`` option was introduced in Symfony 2.2. Use the ``_method``
896-
requirement in older versions.
897-
898890
Despite the fact that these two routes have identical paths (``/contact``),
899891
the first route will match only GET requests and the second route will match
900892
only POST requests. This means that you can display the form and submit the
@@ -907,9 +899,6 @@ form via the same URL, while using distinct controllers for the two actions.
907899
Adding a Host Requirement
908900
~~~~~~~~~~~~~~~~~~~~~~~~~
909901

910-
.. versionadded:: 2.2
911-
Host matching support was introduced in Symfony 2.2
912-
913902
You can also match on the HTTP *host* of the incoming request. For more
914903
information, see :doc:`/components/routing/hostname_pattern` in the Routing
915904
component documentation.
@@ -1289,9 +1278,6 @@ be prefixed with the string ``/site``.
12891278
Adding a Host Requirement to Imported Routes
12901279
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12911280

1292-
.. versionadded:: 2.2
1293-
Host matching support was introduced in Symfony 2.2
1294-
12951281
You can set the host regex on imported routes. For more information, see
12961282
:ref:`component-routing-host-imported`.
12971283

book/templating.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,6 @@ When working with template inheritance, here are some tips to keep in mind:
377377
Template Naming and Locations
378378
-----------------------------
379379

380-
.. versionadded:: 2.2
381-
Namespaced path support was introduced in 2.2, allowing for template names
382-
like ``@AcmeDemo/layout.html.twig``. See :doc:`/cookbook/templating/namespaced_paths`
383-
for more details.
384-
385380
By default, templates can live in two different locations:
386381

387382
``app/Resources/views/``
@@ -582,10 +577,6 @@ you set `with_context`_ to false).
582577
maps (i.e. an array with named keys). If you needed to pass in multiple
583578
elements, it would look like this: ``{'foo': foo, 'bar': bar}``.
584579

585-
.. versionadded:: 2.2
586-
The `include() function`_ is a new Twig feature that's available in Symfony
587-
2.2. Prior, the `{% include %} tag`_ tag was used.
588-
589580
.. index::
590581
single: Templating; Embedding action
591582

@@ -691,9 +682,6 @@ that as much code as possible lives in reusable :doc:`services </book/service_co
691682
Asynchronous Content with hinclude.js
692683
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
693684

694-
.. versionadded:: 2.1
695-
hinclude.js support was introduced in Symfony 2.1
696-
697685
Controllers can be embedded asynchronously using the hinclude.js_ JavaScript library.
698686
As the embedded content comes from another page (or controller for that matter),
699687
Symfony uses a version of the standard ``render`` function to configure ``hinclude``
@@ -801,9 +789,6 @@ in your application configuration:
801789
),
802790
));
803791
804-
.. versionadded:: 2.2
805-
Default templates per render function was introduced in Symfony 2.2
806-
807792
You can define default templates per ``render`` function (which will override
808793
any global default template that is defined):
809794

book/testing.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,6 @@ The Client supports many operations that can be done in a real browser::
407407
Accessing internal Objects
408408
~~~~~~~~~~~~~~~~~~~~~~~~~~
409409

410-
.. versionadded:: 2.3
411-
The :method:`Symfony\\Component\\BrowserKit\\Client::getInternalRequest`
412-
and :method:`Symfony\\Component\\BrowserKit\\Client::getInternalResponse`
413-
methods were introduced in Symfony 2.3.
414-
415410
If you use the client to test your application, you might want to access the
416411
client's internal objects::
417412

book/translation.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,6 @@ texts* and complex expressions:
307307
Note that this only influences the current template, not any "included"
308308
template (in order to avoid side effects).
309309

310-
.. versionadded:: 2.1
311-
The ``trans_default_domain`` tag was introduced in Symfony 2.1.
312-
313310
PHP Templates
314311
~~~~~~~~~~~~~
315312

@@ -537,11 +534,6 @@ the framework:
537534
'default_locale' => 'en',
538535
));
539536
540-
.. versionadded:: 2.1
541-
The ``default_locale`` parameter was defined under the session key
542-
originally, however, as of 2.1 this has been moved. This is because the
543-
locale is now set on the request instead of the session.
544-
545537
.. _book-translation-constraint-messages:
546538

547539
Translating Constraint Messages

components/class_loader/cache_class_loader.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ for a class.
2626
ApcClassLoader
2727
--------------
2828

29-
.. versionadded:: 2.1
30-
The ``ApcClassLoader`` class was introduced in Symfony 2.1.
31-
3229
``ApcClassLoader`` wraps an existing class loader and caches calls to its
3330
``findFile()`` method using `APC`_::
3431

@@ -49,9 +46,6 @@ ApcClassLoader
4946
XcacheClassLoader
5047
-----------------
5148

52-
.. versionadded:: 2.1
53-
The ``XcacheClassLoader`` class was introduced in Symfony 2.1.
54-
5549
``XcacheClassLoader`` uses `XCache`_ to cache a class loader. Registering
5650
it is straightforward::
5751

components/class_loader/class_loader.rst

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

7-
.. versionadded:: 2.1
8-
The ``ClassLoader`` class was introduced in Symfony 2.1.
9-
107
If your classes and third-party libraries follow the `PSR-0`_ standard, you
118
can use the :class:`Symfony\\Component\\ClassLoader\\ClassLoader` class to
129
load all of your project's classes.

components/class_loader/debug_class_loader.rst

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

7-
.. versionadded:: 2.1
8-
The ``DebugClassLoader`` class was introduced in Symfony 2.1.
9-
107
The :class:`Symfony\\Component\\ClassLoader\\DebugClassLoader` attempts to
118
throw more helpful exceptions when a class isn't found by the registered
129
autoloaders. All autoloaders that implement a ``findFile()`` method are replaced

components/config/definition.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ and are created with ``node($name, $type)`` or their associated shortcut
111111
Numeric Node Constraints
112112
~~~~~~~~~~~~~~~~~~~~~~~~
113113

114-
.. versionadded:: 2.2
115-
The numeric (float and integer) nodes were introduced in Symfony 2.2.
116-
117114
Numeric nodes (float and integer) provide two extra constraints -
118115
:method:`Symfony\\Component\\Config\\Definition\\Builder::min` and
119116
:method:`Symfony\\Component\\Config\\Definition\\Builder::max` -
@@ -136,9 +133,6 @@ allowing to validate the value::
136133
Enum Nodes
137134
~~~~~~~~~~
138135

139-
.. versionadded:: 2.1
140-
The enum node was introduced in Symfony 2.1.
141-
142136
Enum nodes provide a constraint to match the given input against a set of
143137
values::
144138

@@ -299,10 +293,6 @@ The info will be printed as a comment when dumping the configuration tree.
299293
Optional Sections
300294
-----------------
301295

302-
.. versionadded:: 2.2
303-
The ``canBeEnabled`` and ``canBeDisabled`` methods were introduced in
304-
Symfony 2.2.
305-
306296
If you have entire sections which are optional and can be enabled/disabled,
307297
you can take advantage of the shortcut
308298
:method:`Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition::canBeEnabled` and

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 & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ If they leave it empty, the default value (``AcmeDemoBundle`` here) is returned.
5959
Autocompletion
6060
~~~~~~~~~~~~~~
6161

62-
.. versionadded:: 2.2
63-
Autocompletion for questions was introduced in Symfony 2.2.
64-
6562
You can also specify an array of potential answers for a given question. These
6663
will be autocompleted as the user types::
6764

@@ -77,9 +74,6 @@ will be autocompleted as the user types::
7774
Hiding the User's Response
7875
~~~~~~~~~~~~~~~~~~~~~~~~~~
7976

80-
.. versionadded:: 2.2
81-
The ``askHiddenResponse`` method was introduced in Symfony 2.2.
82-
8377
You can also ask a question and hide the response. This is particularly
8478
convenient for passwords::
8579

@@ -149,9 +143,6 @@ be able to proceed if their input is valid.
149143
Validating a Hidden Response
150144
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
151145

152-
.. versionadded:: 2.2
153-
The ``askHiddenResponseAndValidate`` method was introduced in Symfony 2.2.
154-
155146
You can also ask and validate a hidden response::
156147

157148
$dialog = $this->getHelper('dialog');
@@ -178,10 +169,6 @@ some reason, pass true as the fifth argument.
178169
Let the User Choose from a List of Answers
179170
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
180171

181-
.. versionadded:: 2.2
182-
The :method:`Symfony\\Component\\Console\\Helper\\DialogHelper::select` method
183-
was introduced in Symfony 2.2.
184-
185172
If you have a predefined set of answers the user can choose from, you
186173
could use the ``ask`` method described above or, to make sure the user
187174
provided a correct answer, the ``askAndValidate`` method. Both have
@@ -214,9 +201,6 @@ or the maximum attempts is reached (which you can define in the fifth
214201
argument). The default value for the attempts is ``false``, which means infinite
215202
attempts. You can define your own error message in the sixth argument.
216203

217-
.. versionadded:: 2.3
218-
Multiselect support was introduced in Symfony 2.3.
219-
220204
Multiple Choices
221205
................
222206

components/console/helpers/progresshelper.rst

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

7-
.. versionadded:: 2.2
8-
The ``progress`` helper was introduced in Symfony 2.2.
9-
10-
.. versionadded:: 2.3
11-
The ``setCurrent`` method was introduced in Symfony 2.3.
12-
137
When executing longer-running commands, it may be helpful to show progress
148
information, which updates as your command runs:
159

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
When building a console application it may be useful to display tabular data:
118

129
.. image:: /images/components/console/table.png

components/console/introduction.rst

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

171-
.. versionadded:: 2.3
172-
The ``VERBOSITY_VERY_VERBOSE`` and ``VERBOSITY_DEBUG`` constants were introduced
173-
in version 2.3
174-
175171
The console has 5 levels of verbosity. These are defined in the
176172
:class:`Symfony\\Component\\Console\\Output\\OutputInterface`:
177173

components/debug.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/compilation.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,6 @@ but also load a secondary one only if a certain parameter is set::
277277
Prepending Configuration Passed to the Extension
278278
------------------------------------------------
279279

280-
.. versionadded:: 2.2
281-
The ability to prepend the configuration of a bundle was introduced in
282-
Symfony 2.2.
283-
284280
An Extension can prepend the configuration of any Bundle before the ``load()``
285281
method is called by implementing :class:`Symfony\\Component\\DependencyInjection\\Extension\\PrependExtensionInterface`::
286282

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
@@ -159,11 +159,6 @@ Call an anonymous function on each node of the list::
159159
return $node->text();
160160
});
161161

162-
.. versionadded:: 2.3
163-
As seen here, in Symfony 2.3, the ``each`` and ``reduce`` Closure functions
164-
are passed a ``Crawler`` as the first argument. Previously, that argument
165-
was a :phpclass:`DOMNode`.
166-
167162
The anonymous function receives the node (as a Crawler) and the position as arguments.
168163
The result is an array of values returned by the anonymous function calls.
169164

0 commit comments

Comments
 (0)