Skip to content

Commit 64d06e3

Browse files
[FrameworkBundle] Fix Di config to allow for more private services
1 parent bf17bcb commit 64d06e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FormRendererInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function searchAndRenderBlock(FormView $view, $blockNameSuffix, array $va
7676
* Check the token in your action using the same token ID.
7777
*
7878
* <code>
79-
* $csrfProvider = $this->get('security.csrf.token_generator');
79+
* // $csrfProvider being an instance of Symfony\Component\Security\Csrf\TokenGenerator\TokenGeneratorInterface
8080
* if (!$csrfProvider->isCsrfTokenValid('rm_user_'.$user->getId(), $token)) {
8181
* throw new \RuntimeException('CSRF attack detected.');
8282
* }

0 commit comments

Comments
 (0)