Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4ae558b

Browse files
committed
Remove 2.6 versionaddeds as version reached eom
1 parented71759 commit4ae558b

File tree

52 files changed

+0
-308
lines changed

Some content is hidden

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

52 files changed

+0
-308
lines changed

‎book/controller.rst‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,6 @@ If you want to redirect the user to another page, use the ``redirectToRoute()``
439439
// return $this->redirect($this->generateUrl('homepage'), 301);
440440
}
441441

442-
..versionadded::2.6
443-
The ``redirectToRoute()`` method was added in Symfony 2.6. Previously (and still now), you
444-
could use ``redirect()`` and ``generateUrl()`` together for this (see the example above).
445-
446442
Or, if you want to redirect externally, just use ``redirect()`` and pass it the URL::
447443

448444
public function indexAction()
@@ -534,9 +530,6 @@ console command:
534530
535531
$ php app/console debug:container
536532
537-
..versionadded::2.6
538-
Prior to Symfony 2.6, this command was called ``container:debug``.
539-
540533
For more information, see the:doc:`/book/service_container` chapter.
541534

542535
..index::

‎book/routing.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,9 +1395,6 @@ the command by running the following from the root of your project.
13951395
13961396
$ php app/console debug:router
13971397
1398-
..versionadded::2.6
1399-
Prior to Symfony 2.6, this command was called ``router:debug``.
1400-
14011398
This command will print a helpful list of *all* the configured routes in
14021399
your application:
14031400

‎book/security.rst‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -841,15 +841,6 @@ You can easily deny access from inside a controller::
841841
// ...
842842
}
843843

844-
..versionadded::2.6
845-
The ``denyAccessUnlessGranted()`` method was introduced in Symfony 2.6. Previously (and
846-
still now), you could check access directly and throw the ``AccessDeniedException`` as shown
847-
in the example above).
848-
849-
..versionadded::2.6
850-
The ``security.authorization_checker`` service was introduced in Symfony 2.6. Prior
851-
to Symfony 2.6, you had to use the ``isGranted()`` method of the ``security.context`` service.
852-
853844
In both cases, a special
854845
:class:`Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException`
855846
is thrown, which ultimately triggers a 403 HTTP response inside Symfony.
@@ -1016,10 +1007,6 @@ shown above.
10161007
Retrieving the User Object
10171008
--------------------------
10181009

1019-
..versionadded::2.6
1020-
The ``security.token_storage`` service was introduced in Symfony 2.6. Prior
1021-
to Symfony 2.6, you had to use the ``getToken()`` method of the ``security.context`` service.
1022-
10231010
After authentication, the ``User`` object of the current user can be accessed
10241011
via the ``security.token_storage`` service. From inside a controller, this will
10251012
look like::
@@ -1220,9 +1207,6 @@ in the following way from a controller::
12201207

12211208
$user->setPassword($encoded);
12221209

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

‎book/service_container.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,9 +1147,6 @@ console. To show all services and the class for each service, run:
11471147
11481148
$ php app/console debug:container
11491149
1150-
..versionadded::2.6
1151-
Prior to Symfony 2.6, this command was called ``container:debug``.
1152-
11531150
By default, only public services are shown, but you can also view private services:
11541151

11551152
..code-block::bash

‎book/templating.rst‎

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

1225-
..versionadded::2.6
1226-
The global ``app.security`` variable (or the ``$app->getSecurity()``
1227-
method in PHP templates) is deprecated as of Symfony 2.6. Use ``app.user``
1228-
(``$app->getUser()``) and ``is_granted()`` (``$view['security']->isGranted()``)
1229-
instead.
1230-
12311225
..tip::
12321226

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

‎book/testing.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,6 @@ Be warned that this does not work if you insulate the client or if you use an
471471
HTTP layer. For a list of services available in your application, use the
472472
``debug:container`` console task.
473473

474-
..versionadded::2.6
475-
Prior to Symfony 2.6, this command was called ``container:debug``.
476-
477474
..tip::
478475

479476
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
@@ -407,9 +407,6 @@ checks translation resources for several locales:
407407
#. If the translation still isn't found, Symfony uses the ``fallbacks`` configuration
408408
parameter, which defaults to ``en`` (see `Configuration`_).
409409

410-
..versionadded::2.6
411-
The ability to log missing translations was introduced in Symfony 2.6.
412-
413410
..note::
414411

415412
When Symfony doesn't find a translation in the given locale, it will
@@ -701,9 +698,6 @@ For more information, see the documentation for these libraries.
701698
Debugging Translations
702699
----------------------
703700

704-
..versionadded::2.6
705-
Prior to Symfony 2.6, this command was called ``translation:debug``.
706-
707701
When maintaining a bundle, you may use or remove the usage of a translation
708702
message without updating all message catalogues. The ``debug:translation``
709703
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
@@ -297,10 +297,6 @@ method.
297297
The info will be printed as a comment when dumping the configuration tree
298298
with the ``config:dump`` command.
299299

300-
..versionadded::2.6
301-
Since Symfony 2.6, the info will also be added to the exception message
302-
when an invalid type is given.
303-
304300
Optional Sections
305301
-----------------
306302

‎components/console/events.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ dispatched. Listeners receive a
5959
Disable Commands inside Listeners
6060
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6161

62-
..versionadded::2.6
63-
Disabling commands inside listeners was introduced in Symfony 2.6.
64-
6562
Using the
6663
:method:`Symfony\\Component\\Console\\Event\\ConsoleCommandEvent::disableCommand`
6764
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. For example, if you used it to output

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp