Rector sf62 changes

This commit is contained in:
2025-10-02 16:31:50 +02:00
parent 8fc19d5c28
commit 3aa2666646
7 changed files with 15 additions and 15 deletions

View File

@@ -112,7 +112,7 @@ final class EventController extends AbstractController
return $this->render('@ChillEvent/Event/confirm_delete.html.twig', [ return $this->render('@ChillEvent/Event/confirm_delete.html.twig', [
'id' => $event->getId(), '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', [ return $this->render('@ChillEvent/Event/new.html.twig', [
'entity' => $entity, 'entity' => $entity,
'form' => $form->createView(), 'form' => $form,
'entity_json' => $entity_array, 'entity_json' => $entity_array,
]); ]);
} }

View File

@@ -66,7 +66,7 @@ class EventTypeController extends AbstractController
return $this->render('@ChillEvent/EventType/edit.html.twig', [ return $this->render('@ChillEvent/EventType/edit.html.twig', [
'entity' => $entity, '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', [ return $this->render('@ChillEvent/EventType/edit.html.twig', [
'entity' => $entity, 'entity' => $entity,
'edit_form' => $editForm->createView(), 'edit_form' => $editForm,
]); ]);
} }

View File

@@ -66,7 +66,7 @@ class RoleController extends AbstractController
return $this->render('@ChillEvent/Role/edit.html.twig', [ return $this->render('@ChillEvent/Role/edit.html.twig', [
'entity' => $entity, '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', [ return $this->render('@ChillEvent/Role/edit.html.twig', [
'entity' => $entity, 'entity' => $entity,
'edit_form' => $editForm->createView(), 'edit_form' => $editForm,
]); ]);
} }

View File

@@ -66,7 +66,7 @@ class StatusController extends AbstractController
return $this->render('@ChillEvent/Status/edit.html.twig', [ return $this->render('@ChillEvent/Status/edit.html.twig', [
'entity' => $entity, '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', [ return $this->render('@ChillEvent/Status/edit.html.twig', [
'entity' => $entity, 'entity' => $entity,
'edit_form' => $editForm->createView(), 'edit_form' => $editForm,
]); ]);
} }

View File

@@ -226,7 +226,7 @@ class ExportController extends AbstractController
} }
return $this->render('@ChillMain/Export/new.html.twig', [ return $this->render('@ChillMain/Export/new.html.twig', [
'form' => $form->createView(), 'form' => $form,
'export_alias' => $alias, 'export_alias' => $alias,
'export' => $export, 'export' => $export,
'export_group' => $this->getExportGroup($export), 'export_group' => $this->getExportGroup($export),
@@ -276,7 +276,7 @@ class ExportController extends AbstractController
return $this->render( return $this->render(
'@ChillMain/Export/new_formatter_step.html.twig', '@ChillMain/Export/new_formatter_step.html.twig',
[ [
'form' => $form->createView(), 'form' => $form,
'export' => $export, 'export' => $export,
'export_group' => $this->getExportGroup($export), 'export_group' => $this->getExportGroup($export),
] ]
@@ -448,7 +448,7 @@ class ExportController extends AbstractController
return $this->render( return $this->render(
'@ChillMain/Export/new_centers_step.html.twig', '@ChillMain/Export/new_centers_step.html.twig',
[ [
'form' => $form->createView(), 'form' => $form,
'export' => $export, 'export' => $export,
'export_group' => $this->getExportGroup($export), 'export_group' => $this->getExportGroup($export),
] ]

View File

@@ -70,7 +70,7 @@ class AccompanyingPeriodWorkDuplicateController extends AbstractController
'accompanyingCourse' => $accompanyingPeriod, 'accompanyingCourse' => $accompanyingPeriod,
// 'acpwArray' => $acpwArray, // 'acpwArray' => $acpwArray,
'acpw' => $acpw, 'acpw' => $acpw,
'form' => $form->createView(), 'form' => $form,
]); ]);
} }
@@ -105,7 +105,7 @@ class AccompanyingPeriodWorkDuplicateController extends AbstractController
'acpw' => $acpw1, 'acpw' => $acpw1,
'acpw2' => $acpw2, 'acpw2' => $acpw2,
'accompanyingCourse' => $accompanyingPeriod, 'accompanyingCourse' => $accompanyingPeriod,
'form' => $form->createView(), 'form' => $form,
]); ]);
} catch (\InvalidArgumentException $e) { } catch (\InvalidArgumentException $e) {
$this->addFlash('error', $this->translator->trans($e->getMessage())); $this->addFlash('error', $this->translator->trans($e->getMessage()));

View File

@@ -65,7 +65,7 @@ class ThirdpartyDuplicateController extends AbstractController
return $this->render('@ChillThirdParty/ThirdPartyDuplicate/find_duplicate.html.twig', [ return $this->render('@ChillThirdParty/ThirdPartyDuplicate/find_duplicate.html.twig', [
'thirdparty' => $thirdparty, 'thirdparty' => $thirdparty,
'form' => $form->createView(), 'form' => $form,
]); ]);
} }
@@ -97,7 +97,7 @@ class ThirdpartyDuplicateController extends AbstractController
return $this->render('@ChillThirdParty/ThirdPartyDuplicate/confirm.html.twig', [ return $this->render('@ChillThirdParty/ThirdPartyDuplicate/confirm.html.twig', [
'thirdparty' => $thirdparty1, 'thirdparty' => $thirdparty1,
'thirdparty2' => $thirdparty2, 'thirdparty2' => $thirdparty2,
'form' => $form->createView(), 'form' => $form,
]); ]);
} catch (\InvalidArgumentException $e) { } catch (\InvalidArgumentException $e) {
$this->addFlash('error', $this->translator->trans($e->getMessage())); $this->addFlash('error', $this->translator->trans($e->getMessage()));