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::
15
15
// ... do something, like deleting an object
16
16
}
17
17
}
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.
13
13
14
14
$ php bin/console debug:router
15
15
16
+ .. versionadded :: 2.6
17
+ Prior to Symfony 2.6, this command was called ``router:debug ``.
18
+
16
19
This command will print a helpful list of *all * the configured routes in
17
20
your application:
18
21
You can’t perform that action at this time.
0 commit comments