8000 minor #63 Readded removed versionadded directives (WouterJ) · symfony/symfony-docs@435682b · GitHub
[go: up one dir, main page]

Skip to content

Commit 435682b

Browse files
committed
minor #63 Readded removed versionadded directives (WouterJ)
This PR was merged into the 2.7 branch. Discussion ---------- Readded removed versionadded directives During the split, these versionadded directives got lost Commits ------- 0f5f762 Readded removed versionadded directives
2 parents 08adf6f + 0f5f762 commit 435682b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

controller/csrf_token_validation.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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'));

routing/debug.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
1619
This command will print a helpful list of *all* the configured routes in
1720
your application:
1821

0 commit comments

Comments
 (0)
0