File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,14 @@ method to check the validity of a CSRF token::
1515 // ... do something, like deleting an object
1616 }
1717 }
18+
19+ .. versionadded :: 2.6
20+ The ``isCsrfTokenValid() `` shortcut method was introduced in Symfony 2.6.
21+ It is equivalent to executing the following code:
22+
23+ .. code-block :: php
24+
25+ use Symfony\Component\Security\Csrf\CsrfToken;
26+
27+ $this->get('security.csrf.token_manager')
28+ ->isTokenValid(new CsrfToken('token_id', 'TOKEN'));
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ the command by running the following from the root of your project.
1313
1414 $ php bin/console debug:router
1515
16+ .. versionadded :: 2.6
17+ Prior to Symfony 2.6, this command was called ``router:debug ``.
18+
1619This command will print a helpful list of *all * the configured routes in
1720your application:
1821
You can’t perform that action at this time.
0 commit comments