Skip to content

Commit 10fe8a4

Browse files
committedNov 2, 2013
Removed 2.2 references as it reached eom
1 parent 957bca4 commit 10fe8a4

File tree

26 files changed

+10
-149
lines changed

26 files changed

+10
-149
lines changed
 

‎book/forms.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ Learn more from the Cookbook
18731873
18741874
.. _`Symfony2 Form Component`: https://github.com/symfony/Form
18751875
.. _`DateTime`: http://php.net/manual/en/class.datetime.php
1876-
.. _`Twig Bridge`: https://github.com/symfony/symfony/tree/2.2/src/Symfony/Bridge/Twig
1877-
.. _`form_div_layout.html.twig`: https://github.com/symfony/symfony/blob/2.2/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
1876+
.. _`Twig Bridge`: https://github.com/symfony/symfony/tree/master/src/Symfony/Bridge/Twig
1877+
.. _`form_div_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
18781878
.. _`Cross-site request forgery`: http://en.wikipedia.org/wiki/Cross-site_request_forgery
1879-
.. _`view on GitHub`: https://github.com/symfony/symfony/tree/2.2/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form
1879+
.. _`view on GitHub`: https://github.com/symfony/symfony/tree/master/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form

‎book/routing.rst‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ The route is simple:
6868
6969
return $collection;
7070
71-
.. versionadded:: 2.2
72-
The ``path`` option is new in Symfony2.2, ``pattern`` is used in older
73-
versions.
74-
7571
The path defined by the ``blog_show`` route acts like ``/blog/*`` where
7672
the wildcard is given the name ``slug``. For the URL ``/blog/my-blog-post``,
7773
the ``slug`` variable gets a value of ``my-blog-post``, which is available
@@ -694,10 +690,6 @@ be accomplished with the following route configuration:
694690
695691
return $collection;
696692
697-
.. versionadded:: 2.2
698-
The ``methods`` option is added in Symfony2.2. Use the ``_method``
699-
requirement in older versions.
700-
701693
Despite the fact that these two routes have identical paths (``/contact``),
702694
the first route will match only GET requests and the second route will match
703695
only POST requests. This means that you can display the form and submit the
@@ -710,9 +702,6 @@ form via the same URL, while using distinct controllers for the two actions.
710702
Adding a Host
711703
~~~~~~~~~~~~~
712704

713-
.. versionadded:: 2.2
714-
Host matching support was added in Symfony 2.2
715-
716705
You can also match on the HTTP *host* of the incoming request. For more
717706
information, see :doc:`/components/routing/hostname_pattern` in the Routing
718707
component documentation.
@@ -1070,9 +1059,6 @@ from the new routing resource.
10701059
Adding a Host regex to Imported Routes
10711060
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10721061

1073-
.. versionadded:: 2.2
1074-
Host matching support was added in Symfony 2.2
1075-
10761062
You can set the host regex on imported routes. For more information, see
10771063
:ref:`component-routing-host-imported`.
10781064

‎book/security.rst‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,10 +1385,6 @@ it as base64. In other words, the password has been greatly obfuscated so
13851385
that the hashed password can't be decoded (i.e. you can't determine the password
13861386
from the hashed password).
13871387

1388-
.. versionadded:: 2.2
1389-
As of Symfony 2.2 you can also use the :ref:`PBKDF2 <reference-security-pbkdf2>`
1390-
and :ref:`BCrypt <reference-security-bcrypt>` password encoders.
1391-
13921388
Determining the Hashed Password
13931389
...............................
13941390

@@ -2023,9 +2019,6 @@ cookie will be ever created by Symfony2):
20232019
Utilities
20242020
---------
20252021

2026-
.. versionadded:: 2.2
2027-
The ``StringUtils`` and ``SecureRandom`` classes were added in Symfony 2.2
2028-
20292022
The Symfony Security Component comes with a collection of nice utilities related
20302023
to security. These utilities are used by Symfony, but you should also use
20312024
them if you want to solve the problem they address.

‎book/templating.rst‎

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

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

385380
* ``app/Resources/views/``: The applications ``views`` directory can contain
@@ -572,10 +567,6 @@ you set `with_context`_ to false).
572567
maps (i.e. an array with named keys). If you needed to pass in multiple
573568
elements, it would look like this: ``{'foo': foo, 'bar': bar}``.
574569

575-
.. versionadded:: 2.2
576-
The `include() function`_ is a new Twig feature that's available in Symfony
577-
2.2. Prior, the `{% include %} tag`_ tag was used.
578-
579570
.. index::
580571
single: Templating; Embedding action
581572

@@ -782,9 +773,6 @@ in your application configuration:
782773
),
783774
));
784775
785-
.. versionadded:: 2.2
786-
Default templates per render function was added in Symfony 2.2
787-
788776
You can define default templates per ``render`` function (which will override
789777
any global default template that is defined):
790778

‎components/config/definition.rst‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ node definition. Node type are available for:
9999

100100
* scalar
101101
* boolean
102-
* integer (new in 2.2)
102+
* integer
103103
* float
104104
* enum
105105
* array
@@ -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 are new in 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` -
@@ -287,9 +284,6 @@ has a certain value:
287284
Optional Sections
288285
-----------------
289286

290-
.. versionadded:: 2.2
291-
The ``canBeEnabled`` and ``canBeDisabled`` methods are new in Symfony 2.2
292-
293287
If you have entire sections which are optional and can be enabled/disabled,
294288
you can take advantage of the shortcut
295289
:method:`Symfony\\Component\\Config\\Definition\\Builder\\ArrayNodeDefinition::canBeEnabled` and

‎components/console/helpers/dialoghelper.rst‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ the default value (``AcmeDemoBundle`` here) is returned.
5656
Autocompletion
5757
~~~~~~~~~~~~~~
5858

59-
.. versionadded:: 2.2
60-
Autocompletion for questions was added in Symfony 2.2.
61-
6259
You can also specify an array of potential answers for a given question. These
6360
will be autocompleted as the user types::
6461

@@ -74,9 +71,6 @@ will be autocompleted as the user types::
7471
Hiding the User's Response
7572
~~~~~~~~~~~~~~~~~~~~~~~~~~
7673

77-
.. versionadded:: 2.2
78-
The ``askHiddenResponse`` method was added in Symfony 2.2.
79-
8074
You can also ask a question and hide the response. This is particularly
8175
convenient for passwords::
8276

@@ -144,9 +138,6 @@ be able to proceed if her input is valid.
144138
Hiding the User's Response
145139
~~~~~~~~~~~~~~~~~~~~~~~~~~
146140

147-
.. versionadded:: 2.2
148-
The ``askHiddenResponseAndValidate`` method was added in Symfony 2.2.
149-
150141
You can also ask and validate a hidden response::
151142

152143
$dialog = $this->getHelperSet()->get('dialog');
@@ -171,10 +162,6 @@ some reason, pass true as the fifth argument.
171162
Let the user choose from a list of Answers
172163
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
173164

174-
.. versionadded:: 2.2
175-
The :method:`Symfony\\Component\\Console\\Helper\\DialogHelper::select` method
176-
was added in Symfony 2.2.
177-
178165
If you have a predefined set of answers the user can choose from, you
179166
could use the ``ask`` method described above or, to make sure the user
180167
provided a correct answer, the ``askAndValidate`` method. Both have

‎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.2
8-
The ``progress`` helper was added in Symfony 2.2.
9-
107
.. versionadded:: 2.3
118
The ``setCurrent`` method was added in Symfony 2.3.
129

‎components/dependency_injection/compilation.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,6 @@ but also load a secondary one only if a certain parameter is set::
276276
Prepending Configuration passed to the Extension
277277
------------------------------------------------
278278

279-
.. versionadded:: 2.2
280-
The ability to prepend the configuration of a bundle is new in Symfony 2.2.
281-
282279
An Extension can prepend the configuration of any Bundle before the ``load()``
283280
method is called by implementing :class:`Symfony\\Component\\DependencyInjection\\Extension\\PrependExtensionInterface`::
284281

‎components/finder.rst‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ Search in several locations by chaining calls to
8282

8383
$finder->files()->in(__DIR__)->in('/elsewhere');
8484

85-
.. versionadded:: 2.2
86-
Wildcard support was added in version 2.2.
87-
8885
Use wildcard characters to search in the directories matching a pattern::
8986

9087
$finder->in('src/Symfony/*/*/Resources');
@@ -206,9 +203,6 @@ The ``notContains()`` method excludes files containing given pattern::
206203
Path
207204
~~~~
208205

209-
.. versionadded:: 2.2
210-
The ``path()`` and ``notPath()`` methods were added in version 2.2.
211-
212206
Restrict files and directories by path with the
213207
:method:`Symfony\\Component\\Finder\\Finder::path` method::
214208

‎components/http_foundation/introduction.rst‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,6 @@ by using the following methods:
248248
.. versionadded:: 2.4
249249
The ``getEncodings()`` method was added in Symfony 2.4.
250250

251-
.. versionadded:: 2.2
252-
The :class:`Symfony\\Component\\HttpFoundation\\AcceptHeader` class is new in Symfony 2.2.
253-
254251
If you need to get full access to parsed data from ``Accept``, ``Accept-Language``,
255252
``Accept-Charset`` or ``Accept-Encoding``, you can use
256253
:class:`Symfony\\Component\\HttpFoundation\\AcceptHeader` utility class::
@@ -462,10 +459,6 @@ abstracts the hard work behind a simple API::
462459

463460
$response->headers->set('Content-Disposition', $d);
464461

465-
.. versionadded:: 2.2
466-
The :class:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse`
467-
class was added in Symfony 2.2.
468-
469462
Alternatively, if you are serving a static file, you can use a
470463
:class:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse`::
471464

‎components/process.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ a command in a sub-process::
3636
The component takes care of the subtle differences between the different platforms
3737
when executing the command.
3838

39-
.. versionadded:: 2.2
40-
The ``getIncrementalOutput()`` and ``getIncrementalErrorOutput()`` methods were added in Symfony 2.2.
41-
4239
The ``getOutput()`` method always return the whole content of the standard
4340
output of the command and ``getErrorOutput()`` the content of the error
4441
output. Alternatively, the :method:`Symfony\\Component\\Process\\Process::getIncrementalOutput`

‎components/property_access/introduction.rst‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ The PropertyAccess Component
88
The PropertyAccess component provides function to read and write from/to an
99
object or array using a simple string notation.
1010

11-
.. versionadded:: 2.2
12-
The PropertyAccess Component is new to Symfony 2.2. Previously, the
13-
``PropertyPath`` class was located in the ``Form`` component.
14-
1511
Installation
1612
------------
1713

‎components/routing/hostname_pattern.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
How to match a route based on the Host
55
======================================
66

7-
.. versionadded:: 2.2
8-
Host matching support was added in Symfony 2.2
9-
107
You can also match on the HTTP *host* of the incoming request.
118

129
.. configuration-block::

‎components/routing/introduction.rst‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ are the least commonly needed.
9393
7. An array of methods. These enforce a certain HTTP request method (``HEAD``,
9494
``GET``, ``POST``, ...).
9595

96-
.. versionadded:: 2.2
97-
Host matching support was added in Symfony 2.2
98-
9996
Take the following route, which combines several of these ideas::
10097

10198
$route = new Route(
@@ -160,10 +157,6 @@ the :method:`Symfony\\Component\\Routing\\RouteCollection::addPrefix` method::
160157

161158
$rootCollection->addCollection($subCollection);
162159

163-
.. versionadded:: 2.2
164-
The ``addPrefix`` method is added in Symfony2.2. This was part of the
165-
``addCollection`` method in older versions.
166-
167160
Set the Request Parameters
168161
~~~~~~~~~~~~~~~~~~~~~~~~~~
169162

‎components/stopwatch.rst‎

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

88
Stopwatch component provides a way to profile code.
99

10-
.. versionadded:: 2.2
11-
The Stopwatch Component is new to Symfony 2.2. Previously, the ``Stopwatch``
12-
class was located in the ``HttpKernel`` component.
13-
1410
Installation
1511
------------
1612

‎cookbook/console/sending_emails.rst‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@ what URL it should use when generating URLs.
1717
There are two ways of configuring the request context: at the application level
1818
and per Command.
1919

20-
Configuring the Request Context globally
20+
Configuring the Request Context Globally
2121
----------------------------------------
2222

23-
.. versionadded: 2.2
24-
The ``base_url`` parameter is available since Symfony 2.2
25-
2623
To configure the Request Context - which is used by the URL Generator - you can
2724
redefine the parameters it uses as default values to change the default host
28-
(localhost) and scheme (http). Starting with Symfony 2.2 you can also configure
29-
the base path if Symfony is not running in the root directory.
25+
(localhost) and scheme (http). You can also configure the base path if Symfony
26+
is not running in the root directory.
3027

3128
Note that this does not impact URLs generated via normal web requests, since those
3229
will override the defaults.

‎cookbook/form/dynamic_form_modification.rst‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,6 @@ The goal is to create a "name" field *only* if the underlying Product object
114114
is new (e.g. hasn't been persisted to the database). Based on that, the subscriber
115115
might look like the following:
116116

117-
.. versionadded:: 2.2
118-
The ability to pass a string into :method:`FormInterface::add <Symfony\\Component\\Form\\FormInterface::add>`
119-
was added in Symfony 2.2.
120-
121117
.. code-block:: php
122118
123119
// src/Acme/DemoBundle/Form/EventListener/AddNameFieldSubscriber.php
@@ -469,10 +465,6 @@ On a form, we can usually listen to the following events:
469465
The events ``PRE_SUBMIT``, ``SUBMIT`` and ``POST_SUBMIT`` were added in
470466
Symfony 2.3. Before, they were named ``PRE_BIND``, ``BIND`` and ``POST_BIND``.
471467

472-
.. versionadded:: 2.2.6
473-
The behavior of the ``POST_SUBMIT`` event changed slightly in 2.2.6, which the
474-
below example uses.
475-
476468
The key is to add a ``POST_SUBMIT`` listener to the field that your new field
477469
depends on. If you add a ``POST_SUBMIT`` listener to a form child (e.g. ``sport``),
478470
and add new children to the parent form, the Form component will detect the

‎cookbook/templating/namespaced_paths.rst‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
How to use and Register namespaced Twig Paths
55
=============================================
66

7-
.. versionadded:: 2.2
8-
Namespaced path support was added in 2.2.
9-
107
Usually, when you refer to a template, you'll use the ``MyBundle:Subdir:filename.html.twig``
118
format (see :ref:`template-naming-locations`).
129

@@ -80,4 +77,4 @@ called ``sidebar.twig`` in that directory, you can use it easily:
8077

8178
.. code-block:: jinja
8279
83-
{% include '@foo_bar/side.bar.twig` %}
80+
{% include '@foo_bar/side.bar.twig` %}

‎cookbook/templating/render_without_controller.rst‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ this is probably only useful if you'd like to cache this page partial (see
7777
Caching the static Template
7878
---------------------------
7979

80-
.. versionadded:: 2.2
81-
The ability to cache templates rendered via ``FrameworkBundle:Template:template``
82-
is new in Symfony 2.2.
83-
8480
Since templates that are rendered in this way are typically static, it might
8581
make sense to cache them. Fortunately, this is easy! By configuring a few
8682
other variables in your route, you can control exactly how your page is cached:
@@ -134,4 +130,4 @@ object created in the controller. For more information on caching, see
134130

135131
There is also a ``private`` variable (not shown here). By default, the Response
136132
will be made public, as long as ``maxAge`` or ``sharedMaxAge`` are passed.
137-
If set to ``true``, the Response will be marked as private.
133+
If set to ``true``, the Response will be marked as private.

‎reference/configuration/framework.rst‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,6 @@ would be ``/images/logo.png?version=5``.
405405
profiler
406406
~~~~~~~~
407407

408-
.. versionadded:: 2.2
409-
The ``enabled`` option was added in Symfony 2.2. Previously, the profiler
410-
could only be disabled by omitting the ``framework.profiler`` configuration
411-
entirely.
412-
413408
.. _profiler.enabled:
414409

415410
enabled

‎reference/configuration/security.rst‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,6 @@ Redirecting after Login
284284
Using the PBKDF2 encoder: Security and Speed
285285
--------------------------------------------
286286

287-
.. versionadded:: 2.2
288-
The PBKDF2 password encoder was added in Symfony 2.2.
289-
290287
The `PBKDF2`_ encoder provides a high level of Cryptographic security, as
291288
recommended by the National Institute of Standards and Technology (NIST).
292289

@@ -309,9 +306,6 @@ Using the BCrypt Password Encoder
309306
To use this encoder, you either need to use PHP Version 5.5 or install
310307
the `ircmaxell/password-compat`_ library via Composer.
311308

312-
.. versionadded:: 2.2
313-
The BCrypt password encoder was added in Symfony 2.2.
314-
315309
.. configuration-block::
316310

317311
.. code-block:: yaml

‎reference/constraints/CardScheme.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
CardScheme
22
==========
33

4-
.. versionadded:: 2.2
5-
The CardScheme validation is new in Symfony 2.2.
6-
74
This constraint ensures that a credit card number is valid for a given credit card
85
company. It can be used to validate the number before trying to initiate a payment
96
through a payment gateway.

‎reference/constraints/Luhn.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
Luhn
22
====
33

4-
.. versionadded:: 2.2
5-
The Luhn validation is new in Symfony 2.2.
6-
74
This constraint is used to ensure that a credit card number passes the `Luhn algorithm`_.
85
It is useful as a first step to validating a credit card: before communicating with a
96
payment gateway.

‎reference/constraints/UserPassword.rst‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
UserPassword
22
============
33

4-
.. note::
5-
6-
Since Symfony 2.2, the ``UserPassword*`` classes in the
7-
``Symfony\\Component\\Security\\Core\\Validator\\Constraint`` namespace are
8-
deprecated and will be removed in Symfony 2.3. Please use the
9-
``UserPassword*`` classes in the
10-
``Symfony\\Component\\Security\\Core\\Validator\\Constraints`` namespace instead.
11-
124
This validates that an input value is equal to the current authenticated
135
user's password. This is useful in a form where a user can change his password,
146
but needs to enter his old password for security.

‎reference/dic_tags.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,6 @@ For an example, see the ``EntityInitializer`` class inside the Doctrine Bridge.
12161216
12171217
.. _`Twig's documentation`: http://twig.sensiolabs.org/doc/advanced.html#creating-an-extension
12181218
.. _`Twig official extension repository`: https://github.com/fabpot/Twig-extensions
1219-
.. _`KernelEvents`: https://github.com/symfony/symfony/blob/2.2/src/Symfony/Component/HttpKernel/KernelEvents.php
1219+
.. _`KernelEvents`: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/KernelEvents.php
12201220
.. _`SwiftMailer's Plugin Documentation`: http://swiftmailer.org/docs/plugins.html
12211221
.. _`Twig Loader`: http://twig.sensiolabs.org/doc/api.html#loaders

‎reference/twig_reference.rst‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ There may also be tags in bundles you use that aren't listed here.
1717
Functions
1818
---------
1919

20-
.. versionadded:: 2.2
21-
The ``render`` and ``controller`` functions are new in Symfony 2.2. Prior,
22-
the ``{% render %}`` tag was used and had a different signature.
23-
2420
+----------------------------------------------------+--------------------------------------------------------------------------------------------+
2521
| Function Syntax | Usage |
2622
+====================================================+============================================================================================+

0 commit comments

Comments
 (0)
Please sign in to comment.