denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY'); $notifssrv = $this->get('bluesquare.notifications_bundle.notifssrv'); $user = $this->getUser(); $notifs = $notifssrv->getForUser($user, true); return $this->json($notifs); } }