Skip to content

Commit e9e5b9c

Browse files
committed
minor symfony#6149 Reference to session + Corrected sample code char (sfdumi)
This PR was submitted for the 3.0 branch but it was merged into the 2.8 branch instead (closes symfony#6149). Discussion ---------- Reference to session + Corrected sample code char Corrected reference to user with reference to session + Removed extra parenthesis from code sample. Commits ------- fc32f7f Reference to session + Corrected sample code char
2 parents f792232 + fc32f7f commit e9e5b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: book/controller.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ from any controller::
605605
$filters = $session->get('filters', array());
606606
}
607607

608-
These attributes will remain on the user for the remainder of that user's
608+
These attributes will remain in the session for the remainder of that user's
609609
session.
610610

611611
.. index::
@@ -821,7 +821,7 @@ method to check the CSRF token::
821821
}
822822

823823
// isCsrfTokenValid() is equivalent to:
824-
// $this->get('security.csrf.token_manager')->isTokenValid()
824+
// $this->get('security.csrf.token_manager')->isTokenValid(
825825
// new \Symfony\Component\Security\Csrf\CsrfToken\CsrfToken('token_id', $token)
826826
// );
827827

0 commit comments

Comments
 (0)