src/PHPDish/Bundle/UserBundle/Controller/UserController.php
public function pointAction($username, Request $request)
    {
        $this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
        $manager = $this->getUserManager();
        $user = $manager->findUserByName($username);
        $histories = $this->getPointManager()->findPointHistories($user, $request->get('page', 1));
        return $this->render($this->configuration->getTemplate('User:point_history.html.twig'), [
            'histories' => $histories,
            'user' => $user,
        ]);
    }
public function pointAction($username, Request $request)
    {
        $this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
        $manager = $this->getUserManager();
        $user = $manager->findUserByName($username);
        $histories = $this->getPointManager()->findPointHistories($user, $request->get('page', 1));
        return $this->render($this->configuration->getTemplate('User:point_history.html.twig'), [
            'histories' => $histories,
            'user' => $user,
        ]);
    }
用户积分

@Route("/users/{username}/points", name="user_points")

@param string $username
@param Request $request
@return Response