src/PHPDish/Bundle/ForumBundle/Controller/ThreadController.php
public function unFollowAction($slug)
    {
        $this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
        $thread = $this->getThreadManager()->findThreadBySlug($slug);
        $this->getThreadManager()->unFollowThread($thread, $this->getUser());
        return $this->json([
            'follower_count' => $thread->getFollowerCount(),
        ]);
    }
public function unFollowAction($slug)
    {
        $this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
        $thread = $this->getThreadManager()->findThreadBySlug($slug);
        $this->getThreadManager()->unFollowThread($thread, $this->getUser());
        return $this->json([
            'follower_count' => $thread->getFollowerCount(),
        ]);
    }
取消关注节点.

@Route("/threads/{slug}/followers", name="thread_unfollow")
@Method("DELETE")

@param string $slug

@return Response