public function indexAction($publicUrl)
    {
        $this->checkAccess();

        try {
            $user = $this->userRepo->findOneByIdOrPublicUrl($publicUrl);
            $evaluations = $this->resourceUserEvaluationRepo->findBy(['user' => $user], ['date' => 'desc']);

            return [
                'user' => $this->serializer->serialize($user),
                'evaluations' => array_map(function (ResourceUserEvaluation $rue) {
                    return $this->serializer->serialize($rue);
                }, $evaluations),
            ];
        } catch (NoResultException $e) {
            throw new NotFoundHttpException('Page not found');
        }
    }
public function indexAction($publicUrl)
    {
        $this->checkAccess();

        try {
            $user = $this->userRepo->findOneByIdOrPublicUrl($publicUrl);
            $evaluations = $this->resourceUserEvaluationRepo->findBy(['user' => $user], ['date' => 'desc']);

            return [
                'user' => $this->serializer->serialize($user),
                'evaluations' => array_map(function (ResourceUserEvaluation $rue) {
                    return $this->serializer->serialize($rue);
                }, $evaluations),
            ];
        } catch (NoResultException $e) {
            throw new NotFoundHttpException('Page not found');
        }
    }
public function indexAction ( $ publicUrl ) { $ this -> checkAccess ( ) ; try { $ user = $ this -> userRepo -> findOneByIdOrPublicUrl ( $ publicUrl ) ; $ evaluations = $ this -> resourceUserEvaluationRepo -> findBy ( [ 'user' => $ user ] , [ 'date' => 'desc' ] ) ; return [ 'user' => $ this -> serializer -> serialize ( $ user ) , 'evaluations' => array_map ( function ( ResourceUserEvaluation $ rue ) { return $ this -> serializer -> serialize ( $ rue ) ; } , $ evaluations ) , ] ; } catch ( NoResultException $ e ) { throw new NotFoundHttpException ( 'Page not found' ) ; } }
Displays a user tracking.

@EXT\Route("/{publicUrl}", name="claro_user_tracking")
@EXT\Template("ClarolineCoreBundle:user:tracking.html.twig")
@EXT\ParamConverter("user", converter="current_user", options={"allowAnonymous"=false})

@param string $publicUrl

@return array
Displays a user tracking .