@@ -51,8 +51,8 @@ class BlogController extends AbstractController
5151 * could move this annotation to any other controller while maintaining
5252 * the route name and therefore, without breaking any existing link.
5353 *
54- * @Route("/", methods={ "GET"} , name="admin_index")
55- * @Route("/", methods={ "GET"} , name="admin_post_index")
54+ * @Route("/", methods="GET", name="admin_index")
55+ * @Route("/", methods="GET", name="admin_post_index")
5656 */
5757 public function index (PostRepository $ posts ): Response
5858 {
@@ -64,7 +64,7 @@ public function index(PostRepository $posts): Response
6464 /**
6565 * Creates a new Post entity.
6666 *
67- * @Route("/new", methods={ "GET", " POST"} , name="admin_post_new")
67+ * @Route("/new", methods="GET| POST", name="admin_post_new")
6868 *
6969 * NOTE: the Method annotation is optional, but it's a recommended practice
7070 * to constraint the HTTP methods each controller responds to (by default
@@ -114,7 +114,7 @@ public function new(Request $request, SluggerInterface $slugger): Response
114114 /**
115115 * Finds and displays a Post entity.
116116 *
117- * @Route("/{id<\d+>}", methods={ "GET"} , name="admin_post_show")
117+ * @Route("/{id<\d+>}", methods="GET", name="admin_post_show")
118118 */
119119 public function show (Post $ post ): Response
120120 {
@@ -130,7 +130,7 @@ public function show(Post $post): Response
130130 /**
131131 * Displays a form to edit an existing Post entity.
132132 *
133- * @Route("/{id<\d+>}/edit",methods={ "GET", " POST"} , name="admin_post_edit")
133+ * @Route("/{id<\d+>}/edit", methods="GET| POST", name="admin_post_edit")
134134 * @IsGranted("edit", subject="post", message="Posts can only be edited by their authors.")
135135 */
136136 public function edit (Request $ request , Post $ post , SluggerInterface $ slugger ): Response
@@ -156,7 +156,7 @@ public function edit(Request $request, Post $post, SluggerInterface $slugger): R
156156 /**
157157 * Deletes a Post entity.
158158 *
159- * @Route("/{id}/delete", methods={ "POST"} , name="admin_post_delete")
159+ * @Route("/{id}/delete", methods="POST", name="admin_post_delete")
160160 * @IsGranted("delete", subject="post")
161161 */
162162 public function delete (Request $ request , Post $ post ): Response
0 commit comments