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

0 commit comments

Comments
 (0)