From 3aa26666462a36aabf1ecbb7794beeba034241d1 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 2 Oct 2025 16:31:50 +0200 Subject: [PATCH] Rector sf62 changes --- src/Bundle/ChillEventBundle/Controller/EventController.php | 4 ++-- .../ChillEventBundle/Controller/EventTypeController.php | 4 ++-- src/Bundle/ChillEventBundle/Controller/RoleController.php | 4 ++-- src/Bundle/ChillEventBundle/Controller/StatusController.php | 4 ++-- src/Bundle/ChillMainBundle/Controller/ExportController.php | 6 +++--- .../AccompanyingPeriodWorkDuplicateController.php | 4 ++-- .../Controller/ThirdpartyDuplicateController.php | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Bundle/ChillEventBundle/Controller/EventController.php b/src/Bundle/ChillEventBundle/Controller/EventController.php index 780548aa1..2063a5154 100644 --- a/src/Bundle/ChillEventBundle/Controller/EventController.php +++ b/src/Bundle/ChillEventBundle/Controller/EventController.php @@ -112,7 +112,7 @@ final class EventController extends AbstractController return $this->render('@ChillEvent/Event/confirm_delete.html.twig', [ 'id' => $event->getId(), - 'delete_form' => $form->createView(), + 'delete_form' => $form, ]); } @@ -216,7 +216,7 @@ final class EventController extends AbstractController return $this->render('@ChillEvent/Event/new.html.twig', [ 'entity' => $entity, - 'form' => $form->createView(), + 'form' => $form, 'entity_json' => $entity_array, ]); } diff --git a/src/Bundle/ChillEventBundle/Controller/EventTypeController.php b/src/Bundle/ChillEventBundle/Controller/EventTypeController.php index 6a483b98f..e1e391ce7 100644 --- a/src/Bundle/ChillEventBundle/Controller/EventTypeController.php +++ b/src/Bundle/ChillEventBundle/Controller/EventTypeController.php @@ -66,7 +66,7 @@ class EventTypeController extends AbstractController return $this->render('@ChillEvent/EventType/edit.html.twig', [ 'entity' => $entity, - 'edit_form' => $editForm->createView(), + 'edit_form' => $editForm, ]); } @@ -125,7 +125,7 @@ class EventTypeController extends AbstractController return $this->render('@ChillEvent/EventType/edit.html.twig', [ 'entity' => $entity, - 'edit_form' => $editForm->createView(), + 'edit_form' => $editForm, ]); } diff --git a/src/Bundle/ChillEventBundle/Controller/RoleController.php b/src/Bundle/ChillEventBundle/Controller/RoleController.php index 1c96d57ee..3d9e4f82b 100644 --- a/src/Bundle/ChillEventBundle/Controller/RoleController.php +++ b/src/Bundle/ChillEventBundle/Controller/RoleController.php @@ -66,7 +66,7 @@ class RoleController extends AbstractController return $this->render('@ChillEvent/Role/edit.html.twig', [ 'entity' => $entity, - 'edit_form' => $editForm->createView(), + 'edit_form' => $editForm, ]); } @@ -125,7 +125,7 @@ class RoleController extends AbstractController return $this->render('@ChillEvent/Role/edit.html.twig', [ 'entity' => $entity, - 'edit_form' => $editForm->createView(), + 'edit_form' => $editForm, ]); } diff --git a/src/Bundle/ChillEventBundle/Controller/StatusController.php b/src/Bundle/ChillEventBundle/Controller/StatusController.php index bb63b9b88..d390ede9c 100644 --- a/src/Bundle/ChillEventBundle/Controller/StatusController.php +++ b/src/Bundle/ChillEventBundle/Controller/StatusController.php @@ -66,7 +66,7 @@ class StatusController extends AbstractController return $this->render('@ChillEvent/Status/edit.html.twig', [ 'entity' => $entity, - 'edit_form' => $editForm->createView(), + 'edit_form' => $editForm, ]); } @@ -125,7 +125,7 @@ class StatusController extends AbstractController return $this->render('@ChillEvent/Status/edit.html.twig', [ 'entity' => $entity, - 'edit_form' => $editForm->createView(), + 'edit_form' => $editForm, ]); } diff --git a/src/Bundle/ChillMainBundle/Controller/ExportController.php b/src/Bundle/ChillMainBundle/Controller/ExportController.php index 957819995..af836b8fb 100644 --- a/src/Bundle/ChillMainBundle/Controller/ExportController.php +++ b/src/Bundle/ChillMainBundle/Controller/ExportController.php @@ -226,7 +226,7 @@ class ExportController extends AbstractController } return $this->render('@ChillMain/Export/new.html.twig', [ - 'form' => $form->createView(), + 'form' => $form, 'export_alias' => $alias, 'export' => $export, 'export_group' => $this->getExportGroup($export), @@ -276,7 +276,7 @@ class ExportController extends AbstractController return $this->render( '@ChillMain/Export/new_formatter_step.html.twig', [ - 'form' => $form->createView(), + 'form' => $form, 'export' => $export, 'export_group' => $this->getExportGroup($export), ] @@ -448,7 +448,7 @@ class ExportController extends AbstractController return $this->render( '@ChillMain/Export/new_centers_step.html.twig', [ - 'form' => $form->createView(), + 'form' => $form, 'export' => $export, 'export_group' => $this->getExportGroup($export), ] diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkDuplicateController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkDuplicateController.php index cdde94867..cb7dbf08a 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkDuplicateController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkDuplicateController.php @@ -70,7 +70,7 @@ class AccompanyingPeriodWorkDuplicateController extends AbstractController 'accompanyingCourse' => $accompanyingPeriod, // 'acpwArray' => $acpwArray, 'acpw' => $acpw, - 'form' => $form->createView(), + 'form' => $form, ]); } @@ -105,7 +105,7 @@ class AccompanyingPeriodWorkDuplicateController extends AbstractController 'acpw' => $acpw1, 'acpw2' => $acpw2, 'accompanyingCourse' => $accompanyingPeriod, - 'form' => $form->createView(), + 'form' => $form, ]); } catch (\InvalidArgumentException $e) { $this->addFlash('error', $this->translator->trans($e->getMessage())); diff --git a/src/Bundle/ChillThirdPartyBundle/Controller/ThirdpartyDuplicateController.php b/src/Bundle/ChillThirdPartyBundle/Controller/ThirdpartyDuplicateController.php index 38dc4e0db..803ae3e0a 100644 --- a/src/Bundle/ChillThirdPartyBundle/Controller/ThirdpartyDuplicateController.php +++ b/src/Bundle/ChillThirdPartyBundle/Controller/ThirdpartyDuplicateController.php @@ -65,7 +65,7 @@ class ThirdpartyDuplicateController extends AbstractController return $this->render('@ChillThirdParty/ThirdPartyDuplicate/find_duplicate.html.twig', [ 'thirdparty' => $thirdparty, - 'form' => $form->createView(), + 'form' => $form, ]); } @@ -97,7 +97,7 @@ class ThirdpartyDuplicateController extends AbstractController return $this->render('@ChillThirdParty/ThirdPartyDuplicate/confirm.html.twig', [ 'thirdparty' => $thirdparty1, 'thirdparty2' => $thirdparty2, - 'form' => $form->createView(), + 'form' => $form, ]); } catch (\InvalidArgumentException $e) { $this->addFlash('error', $this->translator->trans($e->getMessage()));