Skip to content

Commit

Permalink
Reference to session + Corrected sample code char
Browse files Browse the repository at this point in the history
Corrected reference to user with reference to session + Removed extra parenthesis from code sample.
  • Loading branch information
sfdumi authored and xabbuh committed Jan 18, 2016
1 parent f792232 commit fc32f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down Expand Up @@ -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)
// );

Expand Down

0 comments on commit fc32f7f

Please sign in to comment.