kkreft
9/29/2015 - 1:52 PM

s2 get current user in controller from security context

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