Skip to content

Commit 1650332

Browse files
Replacement renderForm() method deprecated by render() method
1 parent e919b78 commit 1650332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/fixtures/make-crud/expected/WithCustomRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function new(Request $request, EntityManagerInterface $entityManager): Re
3636
return $this->redirectToRoute('app_sweet_food_index', [], Response::HTTP_SEE_OTHER);
3737
}
3838

39-
return $this->renderForm('sweet_food/new.html.twig', [
39+
return $this->render('sweet_food/new.html.twig', [
4040
'sweet_food' => $sweetFood,
4141
'form' => $form,
4242
]);
@@ -62,7 +62,7 @@ public function edit(Request $request, SweetFood $sweetFood, EntityManagerInterf
6262
return $this->redirectToRoute('app_sweet_food_index', [], Response::HTTP_SEE_OTHER);
6363
}
6464

65-
return $this->renderForm('sweet_food/edit.html.twig', [
65+
return $this->render('sweet_food/edit.html.twig', [
6666
'sweet_food' => $sweetFood,
6767
'form' => $form,
6868
]);

0 commit comments

Comments
 (0)