标签:
$usernameToken = unserialize($request->getSession()->get(‘_security_main‘)); $user = $usernameToken->getUser();
symfony 从request中获取当前登陆用户
原文地址:http://www.cnblogs.com/zlycode/p/4210080.html