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

        $view = $this->view([
                'user' => $user,
                'followers' => $followers,
            ])->setTemplate($this->configuration->getTemplate('User:user_followers.html.twig'));

        return $this->handleView($view);
    }
public function getUserFollowersAction($username, Request $request)
    {
        $manager = $this->getUserManager();
        $user = $manager->findUserByName($username);
        $followers = $manager->findUserFollowers($user, $request->query->getInt('page', 1));

        $view = $this->view([
                'user' => $user,
                'followers' => $followers,
            ])->setTemplate($this->configuration->getTemplate('User:user_followers.html.twig'));

        return $this->handleView($view);
    }
@Route("/users/{username}/followers.{_format}", name="user_followers", defaults={"_format"="html"})
@Method("GET")

@param string  $username
@param Request $request

@return Response