📅  最后修改于: 2022-03-11 14:57:37.381000             🧑  作者: Mango
1/**
2 * @Route("/programs/{program_id}/comment/{comment_id}", name="program_show_comment")
3 * @ParamConverter("program", class="App\Entity\Program", options={"mapping": {"program_id": "id"}})
4 * @ParamConverter("comment", class="App\Entity\Comment", options={"mapping": {"comment_id": "id"}})
5 */
6public function showProgramComment(Program $program, Comment $comment): Response
7{
8 return $this->render('comment.html.twig', [
9 'program' => $program,
10 'comment' => $comment,
11 ]);
12}