@@ -441,10 +441,6 @@ If you want to redirect the user to another page, use the ``redirectToRoute()``
441441 // return $this->redirect($this->generateUrl('homepage'), 301);
442442 }
443443
444- .. versionadded :: 2.6
445- The ``redirectToRoute() `` method was introduced in Symfony 2.6. Previously (and still now), you
446- could use ``redirect() `` and ``generateUrl() `` together for this (see the example above).
447-
448444Or, if you want to redirect externally, just use ``redirect() `` and pass it the URL::
449445
450446 public function indexAction()
@@ -536,9 +532,6 @@ console command:
536532
537533 $ php app/console debug:container
538534
539- .. versionadded :: 2.6
540- Prior to Symfony 2.6, this command was called ``container:debug ``.
541-
542535 For more information, see the :doc: `/book/service_container ` chapter.
543536
544537.. index ::
@@ -825,16 +818,10 @@ method to check the CSRF token::
825818 // ... do something, like deleting an object
826819 }
827820
828- .. versionadded :: 2.6
829- The ``isCsrfTokenValid() `` shortcut method was introduced in Symfony 2.6.
830- It is equivalent to executing the following code:
831-
832- .. code-block :: php
833-
834- use Symfony\Component\Security\Csrf\CsrfToken;
835-
836- $this->get('security.csrf.token_manager')
837- ->isTokenValid(new CsrfToken('token_id', 'TOKEN'));
821+ // isCsrfTokenValid() is equivalent to:
822+ // $this->get('security.csrf.token_manager')->isTokenValid()
823+ // new \Symfony\Component\Security\Csrf\CsrfToken\CsrfToken('token_id', $token)
824+ // );
838825
839826Final Thoughts
840827--------------
0 commit comments