src/PHPDish/Bundle/ForumBundle/Controller/TopicReplyController.php
public function deleteAction($id)
    {
        $manager = $this->getReplyManager();
        $reply = $manager->findReplyById($id);
        if (!$reply) {
            throw $this->createNotFoundException();
        }
        $this->denyAccessUnlessGranted('edit', $reply);
        $manager->blockReply($reply);

        return $this->handleView($this->view([
            'result' => true,
        ]));
    }
public function deleteAction($id)
    {
        $manager = $this->getReplyManager();
        $reply = $manager->findReplyById($id);
        if (!$reply) {
            throw $this->createNotFoundException();
        }
        $this->denyAccessUnlessGranted('edit', $reply);
        $manager->blockReply($reply);

        return $this->handleView($this->view([
            'result' => true,
        ]));
    }
删除回复.

@Route("/replies/{id}", name="topic_reply_delete", requirements={"id": "\d+"}, methods={"DELETE"})

@param int $id

@return Response