Open anonymous1983 opened 8 years ago
if ($securityContext->isGranted('IS_AUTHENTICATED_REMEMBERED')) { return $this->get('security.token_storage')->getToken()->getUser()->getId(); }else{ return null; }