Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get current user in symfony

$user = $this->get('security.token_storage')->getToken()->getUser();
$user->getUsername();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #user #symfony
ADD COMMENT
Topic
Name
1+7 =