diff --git a/templates/crud/controller/Controller.tpl.php b/templates/crud/controller/Controller.tpl.php index 0a4a84d55..fd36a68e2 100644 --- a/templates/crud/controller/Controller.tpl.php +++ b/templates/crud/controller/Controller.tpl.php @@ -7,7 +7,7 @@ #[Route('')] getClassDeclaration() ?> { -generateRouteForControllerMethod('', sprintf('%s_index', $route_name), ['GET']) ?> +generateRouteForControllerMethod('', sprintf('%s_index', $route_name), 'GET') ?> public function index( $): Response { @@ -48,7 +48,7 @@ public function new(Request $request, EntityManagerInterface $entityManager): Re ]); } -generateRouteForControllerMethod(sprintf('/{%s}', $entity_identifier), sprintf('%s_show', $route_name), ['GET']) ?> +generateRouteForControllerMethod(sprintf('/{%s}', $entity_identifier), sprintf('%s_show', $route_name), 'GET') ?> public function show( $): Response { return $this->render('/show.html.twig', [ @@ -74,7 +74,7 @@ public function edit(Request $request, $generateRouteForControllerMethod(sprintf('/{%s}', $entity_identifier), sprintf('%s_delete', $route_name), ['POST']) ?> +generateRouteForControllerMethod(sprintf('/{%s}', $entity_identifier), sprintf('%s_delete', $route_name), 'POST') ?> public function delete(Request $request, $, EntityManagerInterface $entityManager): Response { if ($this->isCsrfTokenValid('delete'.$->get(), $request->getPayload()->getString('_token'))) {