Skip to content

Commit cea5408

Browse files
committed
Removed 2.x versionadded directives
1 parent fcfea43 commit cea5408

File tree

86 files changed

+0
-484
lines changed

Some content is hidden

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

86 files changed

+0
-484
lines changed

book/controller.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,6 @@ console command:
520520
521521
$ php app/console debug:container
522522
523-
.. versionadded:: 2.6
524-
Prior to Symfony 2.6, this command was called ``container:debug``.
525-
526523
For more information, see the :doc:`/book/service_container` chapter.
527524

528525
.. index::

book/forms.rst

Lines changed: 0 additions & 19 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

@@ -564,9 +548,6 @@ You can also define whole logic inline by using a ``Closure``::
564548
Groups based on the Clicked Button
565549
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
566550

567-
.. versionadded:: 2.3
568-
Support for buttons in forms was introduced in Symfony 2.3.
569-
570551
When your form contains multiple submit buttons, you can change the validation
571552
group depending on which button is used to submit the form. For example,
572553
consider a form in a wizard that lets you advance to the next step or go back

book/routing.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,9 +1386,6 @@ the command by running the following from the root of your project.
13861386
13871387
$ php app/console debug:router
13881388
1389-
.. versionadded:: 2.6
1390-
Prior to Symfony 2.6, this command was called ``router:debug``.
1391-
13921389
This command will print a helpful list of *all* the configured routes in
13931390
your application:
13941391

book/security.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -805,10 +805,6 @@ You can easily deny access from inside a controller::
805805
// ...
806806
}
807807

808-
.. versionadded:: 2.6
809-
The ``security.authorization_checker`` service was introduced in Symfony 2.6. Prior
810-
to Symfony 2.6, you had to use the ``isGranted()`` method of the ``security.context`` service.
811-
812808
.. versionadded:: 2.5
813809
The ``createAccessDeniedException`` method was introduced in Symfony 2.5.
814810

@@ -979,10 +975,6 @@ shown above.
979975
Retrieving the User Object
980976
--------------------------
981977

982-
.. versionadded:: 2.6
983-
The ``security.token_storage`` service was introduced in Symfony 2.6. Prior
984-
to Symfony 2.6, you had to use the ``getToken()`` method of the ``security.context`` service.
985-
986978
After authentication, the ``User`` object of the current user can be accessed
987979
via the ``security.token_storage`` service. From inside a controller, this will
988980
look like::
@@ -1180,9 +1172,6 @@ in the following way from a controller::
11801172

11811173
$user->setPassword($encoded);
11821174

1183-
.. versionadded:: 2.6
1184-
The ``security.password_encoder`` service was introduced in Symfony 2.6.
1185-
11861175
In order for this to work, just make sure that you have the encoder for your
11871176
user class (e.g. ``AppBundle\Entity\User``) configured under the ``encoders``
11881177
key in ``app/config/security.yml``.

book/service_container.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,9 +1132,6 @@ console. To show all services and the class for each service, run:
11321132
11331133
$ php app/console debug:container
11341134
1135-
.. versionadded:: 2.6
1136-
Prior to Symfony 2.6, this command was called ``container:debug``.
1137-
11381135
By default, only public services are shown, but you can also view private services:
11391136

11401137
.. code-block:: bash

book/templating.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,12 +1178,6 @@ automatically:
11781178
<p>Application Environment: <?php echo $app->getEnvironment() ?></p>
11791179
<?php endif ?>
11801180

1181-
.. versionadded:: 2.6
1182-
The global ``app.security`` variable (or the ``$app->getSecurity()``
1183-
method in PHP templates) is deprecated as of Symfony 2.6. Use `app.user`
1184-
(`$app->getUser()`) and `is_granted()` (`$view['security']->isGranted()`)
1185-
instead.
1186-
11871181
.. tip::
11881182

11891183
You can add your own global template variables. See the cookbook example

book/testing.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,6 @@ The Client supports many operations that can be done in a real browser::
414414
Accessing internal Objects
415415
~~~~~~~~~~~~~~~~~~~~~~~~~~
416416

417-
.. versionadded:: 2.3
418-
The :method:`Symfony\\Component\\BrowserKit\\Client::getInternalRequest`
419-
and :method:`Symfony\\Component\\BrowserKit\\Client::getInternalResponse`
420-
methods were introduced in Symfony 2.3.
421-
422417
If you use the client to test your application, you might want to access the
423418
client's internal objects::
424419

@@ -461,9 +456,6 @@ Be warned that this does not work if you insulate the client or if you use an
461456
HTTP layer. For a list of services available in your application, use the
462457
``debug:container`` console task.
463458

464-
.. versionadded:: 2.6
465-
Prior to Symfony 2.6, this command was called ``container:debug``.
466-
467459
.. tip::
468460

469461
If the information you need to check is available from the profiler, use

book/translation.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,6 @@ checks translation resources for several locales:
400400
#. If the translation still isn't found, Symfony uses the ``fallback`` configuration
401401
parameter, which defaults to ``en`` (see `Configuration`_).
402402

403-
.. versionadded:: 2.6
404-
The ability to log missing translations was introduced in Symfony 2.6.
405-
406403
.. note::
407404

408405
When Symfony doesn't find a translation in the given locale, it will
@@ -673,9 +670,6 @@ Debugging Translations
673670
.. versionadded:: 2.5
674671
The ``debug:translation`` command was introduced in Symfony 2.5.
675672

676-
.. versionadded:: 2.6
677-
Prior to Symfony 2.6, this command was called ``translation:debug``.
678-
679673
When maintaining a bundle, you may use or remove the usage of a translation
680674
message without updating all message catalogues. The ``debug:translation``
681675
command helps you to find these missing or unused translation messages for a

components/config/definition.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,6 @@ method.
290290

291291
The info will be printed as a comment when dumping the configuration tree.
292292

293-
.. versionadded:: 2.6
294-
Since Symfony 2.6, the info will also be added to the exception message
295-
when an invalid type is given.
296-
297293
Optional Sections
298294
-----------------
299295

components/console/events.rst

Lines changed: 0 additions & 6 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::
@@ -54,9 +51,6 @@ dispatched. Listeners receive a
5451
Disable Commands inside Listeners
5552
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5653

57-
.. versionadded:: 2.6
58-
Disabling commands inside listeners was introduced in Symfony 2.6.
59-
6054
Using the
6155
:method:`Symfony\\Component\\Console\\Event\\ConsoleCommandEvent::disableCommand`
6256
method, you can disable a command inside a listener. The application

components/console/helpers/debug_formatter.rst

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

7-
.. versionadded:: 2.6
8-
The Debug Formatter helper was introduced in Symfony 2.6.
9-
107
The :class:`Symfony\\Component\\Console\\Helper\\DebugFormatterHelper` provides
118
functions to output debug information when running an external program, for
129
instance a process or HTTP request. It is included in the default helper set

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/processhelper.rst

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

7-
.. versionadded:: 2.6
8-
The Process Helper was introduced in Symfony 2.6.
9-
107
The Process Helper shows processes as they're running and reports
118
useful information about process status.
129

components/console/helpers/progressbar.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,11 @@ Instead of advancing the bar by a number of steps (with the
4444
you can also set the current progress by calling the
4545
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setProgress` method.
4646

47-
.. versionadded:: 2.6
48-
The ``setProgress()`` method was called ``setCurrent()`` prior to Symfony 2.6.
49-
5047
.. caution::
5148

5249
Prior to version 2.6, the progress bar only works if your platform
5350
supports ANSI codes; on other platforms, no output is generated.
5451

55-
.. versionadded:: 2.6
56-
If your platform doesn't support ANSI codes, updates to the progress
57-
bar are added as new lines. To prevent the output from being flooded,
58-
adjust the
59-
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setRedrawFrequency`
60-
accordingly. By default, when using a ``max``, the redraw frequency
61-
is set to *10%* of your ``max``.
62-
6352
If you don't know the number of steps in advance, just omit the steps argument
6453
when creating the :class:`Symfony\\Component\\Console\\Helper\\ProgressBar`
6554
instance::
@@ -307,9 +296,6 @@ that displays the number of remaining steps::
307296
}
308297
);
309298

310-
.. versionadded:: 2.6
311-
The ``getProgress()`` method was called ``getStep()`` prior to Symfony 2.6.
312-
313299
Custom Messages
314300
~~~~~~~~~~~~~~~
315301

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
.. versionadded:: 2.4
118
The ``clear`` method was introduced in Symfony 2.4.
129

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
@@ -170,10 +170,6 @@ You can also set these colors and options inside the tagname::
170170
Verbosity Levels
171171
~~~~~~~~~~~~~~~~
172172

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

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/factories.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
Using a Factory to Create Services
55
==================================
66

7-
.. versionadded:: 2.6
8-
The new `Symfony\\Component\\DependencyInjection\\Definition::setFactory`
9-
method was introduced in Symfony 2.6. Refer to older versions for the
10-
syntax for factories prior to 2.6.
11-
127
Symfony's Service Container provides a powerful way of controlling the
138
creation of objects, allowing you to specify arguments passed to the constructor
149
as well as calling methods and setting parameters. Sometimes, however, this

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 & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,6 @@ Get all the child or parent nodes::
193193
Accessing Node Values
194194
~~~~~~~~~~~~~~~~~~~~~
195195

196-
.. versionadded:: 2.6
197-
The :method:`Symfony\\Component\\DomCrawler\\Crawler::nodeName`
198-
method was introduced in Symfony 2.6.
199-
200196
Access the node name (HTML tag name) of the first node of the current selection (eg. "p" or "div")::
201197

202198
// will return the node name (HTML tag name) of the first child element under <body>
@@ -230,11 +226,6 @@ Call an anonymous function on each node of the list::
230226
return $node->text();
231227
});
232228

233-
.. versionadded:: 2.3
234-
As seen here, in Symfony 2.3, the ``each`` and ``reduce`` Closure functions
235-
are passed a ``Crawler`` as the first argument. Previously, that argument
236-
was a :phpclass:`DOMNode`.
237-
238229
The anonymous function receives the node (as a Crawler) and the position as arguments.
239230
The result is an array of values returned by the anonymous function calls.
240231

components/expression_language/extending.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ evaluating or the "names" if compiling).
5656
Using Expression Providers
5757
--------------------------
5858

59-
.. versionadded:: 2.6
60-
Expression providers were introduced in Symfony 2.6.
61-
6259
When you use the ``ExpressionLanguage`` class in your library, you often want
6360
to add custom functions. To do so, you can create a new expression provider by
6461
creating a class that implements

components/filesystem/introduction.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,6 @@ isAbsolutePath
241241
dumpFile
242242
~~~~~~~~
243243

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

components/filesystem/lock_handler.rst

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

4-
.. versionadded:: 2.6
5-
The lock handler feature was introduced in Symfony 2.6
6-
74
What is a Lock?
85
---------------
96

components/finder.rst

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

9494
$finder->in(__DIR__)->exclude('ruby');
9595

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

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

0 commit comments

Comments
 (0)