get user symfony

137

get user symfony -

$user = $this->get('security.token_storage')->getToken()->getUser();
$user->getUsername();

Comments

Submit
0 Comments