src/PHPDish/Bundle/PostBundle/Controller/BookController.php
public function getFollowersAction($slug, Request $request)
    {
        $book = $this->getBookManager()->findBook($slug);
        $users = $this->getUserManager()->findCategoryFollowers($book, $request->query->getInt('page', 1));

        return $this->render($this->configuration->getTemplate('Book:followers.html.twig'), [
            'book' => $book,
            'users' => $users,
        ]);
    }
public function getFollowersAction($slug, Request $request)
    {
        $book = $this->getBookManager()->findBook($slug);
        $users = $this->getUserManager()->findCategoryFollowers($book, $request->query->getInt('page', 1));

        return $this->render($this->configuration->getTemplate('Book:followers.html.twig'), [
            'book' => $book,
            'users' => $users,
        ]);
    }
专栏的关注者.

@Route("/books/{slug}/followers", name="book_followers")
@Method("GET")

@param string $slug
@param Request $request

@return Response