src/PHPDish/Bundle/UserBundle/Controller/UserController.php
public function getUserFollowingAction($username, Request $request)
    {
        $manager = $this->getUserManager();
        $user = $manager->findUserByName($username);
        $following = $manager->findUserFollowing($user, $request->query->getInt('page', 1));

        return $this->render($this->configuration->getTemplate('User:user_following.html.twig'), [
            'user' => $user,
            'users' => $following,
        ]);
    }
public function getUserFollowingAction($username, Request $request)
    {
        $manager = $this->getUserManager();
        $user = $manager->findUserByName($username);
        $following = $manager->findUserFollowing($user, $request->query->getInt('page', 1));

        return $this->render($this->configuration->getTemplate('User:user_following.html.twig'), [
            'user' => $user,
            'users' => $following,
        ]);
    }
获取用户关注的人.

@Route("/users/{username}/following", name="user_following")

@param string  $username
@param Request $request

@return Response