Created
May 16, 2014 08:08
-
-
Save rccc/db5a3bc9fe03b607060d to your computer and use it in GitHub Desktop.
SF2 - check if user is connected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!$this->get('security.context')->isGranted('ROLE_USER')) | |
{ | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment