From b8f786265d93d7b9146ae966192c0e6b168c012e Mon Sep 17 00:00:00 2001 From: Sorin Dumitrescu Date: Thu, 14 Jan 2016 22:12:50 +0200 Subject: [PATCH] Reference to session + Corrected sample code char Corrected reference to user with reference to session + Removed extra parenthesis from code sample. --- book/controller.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/controller.rst b/book/controller.rst index 0a1a5ef8298..090983770d5 100644 --- a/book/controller.rst +++ b/book/controller.rst @@ -605,7 +605,7 @@ from any controller:: $filters = $session->get('filters', array()); } -These attributes will remain on the user for the remainder of that user's +These attributes will remain in the session for the remainder of that user's session. .. index:: @@ -821,7 +821,7 @@ method to check the CSRF token:: } // isCsrfTokenValid() is equivalent to: - // $this->get('security.csrf.token_manager')->isTokenValid() + // $this->get('security.csrf.token_manager')->isTokenValid( // new \Symfony\Component\Security\Csrf\CsrfToken\CsrfToken('token_id', $token) // );