src/PHPDish/Bundle/ForumBundle/Controller/TopicReplyController.php
public function getUserRepliesAction($username, Request $request)
    {
        $user = $this->getUserManager()->findUserByName($username);
        $replies = $this->getReplyManager()
            ->findUserReplies($user, $request->query->getInt('page', 1));

        return $this->render($this->configuration->getTemplate('Topic:user_replies.html.twig'), [
            'user' => $user,
            'replies' => $replies,
        ]);
    }
public function getUserRepliesAction($username, Request $request)
    {
        $user = $this->getUserManager()->findUserByName($username);
        $replies = $this->getReplyManager()
            ->findUserReplies($user, $request->query->getInt('page', 1));

        return $this->render($this->configuration->getTemplate('Topic:user_replies.html.twig'), [
            'user' => $user,
            'replies' => $replies,
        ]);
    }
获取用户的回复

@Route("/users/{username}/replies", name="user_replies")

@param string  $username
@param Request $request

@return Response