Run symfonysetlist up to symfony_70

This commit is contained in:
2025-05-28 15:46:25 +02:00
parent abb786495a
commit 13a9e14450
128 changed files with 515 additions and 518 deletions

View File

@@ -21,7 +21,7 @@ use Symfony\Component\Routing\Annotation\Route;
*/
class AdminController extends AbstractController
{
#[Route(path: '/{_locale}/admin/customfield/', name: 'customfield_section')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfield/', name: 'customfield_section')]
public function indexAction(): Response
{
return $this->render('@ChillCustomFields/Admin/layout.html.twig');

View File

@@ -34,7 +34,7 @@ class CustomFieldController extends AbstractController
/**
* Creates a new CustomField entity.
*/
#[Route(path: '/{_locale}/admin/customfield/new', name: 'customfield_create')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfield/new', name: 'customfield_create')]
public function createAction(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$entity = new CustomField();
@@ -57,14 +57,14 @@ class CustomFieldController extends AbstractController
return $this->render('@ChillCustomFields/CustomField/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* Displays a form to edit an existing CustomField entity.
*/
#[Route(path: '/{_locale}/admin/customfield/edit', name: 'customfield_edit')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfield/edit', name: 'customfield_edit')]
public function editAction(mixed $id): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -79,14 +79,14 @@ class CustomFieldController extends AbstractController
return $this->render('@ChillCustomFields/CustomField/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'edit_form' => $editForm,
]);
}
/**
* Displays a form to create a new CustomField entity.
*/
#[Route(path: '/{_locale}/admin/customfield/new', name: 'customfield_new')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfield/new', name: 'customfield_new')]
public function newAction(Request $request): \Symfony\Component\HttpFoundation\Response
{
$entity = new CustomField();
@@ -109,14 +109,14 @@ class CustomFieldController extends AbstractController
return $this->render('@ChillCustomFields/CustomField/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* Edits an existing CustomField entity.
*/
#[Route(path: '/{_locale}/admin/customfield/update', name: 'customfield_update')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfield/update', name: 'customfield_update')]
public function updateAction(Request $request, mixed $id): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -144,7 +144,7 @@ class CustomFieldController extends AbstractController
return $this->render('@ChillCustomFields/CustomField/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'edit_form' => $editForm,
]);
}

View File

@@ -45,7 +45,7 @@ class CustomFieldsGroupController extends AbstractController
/**
* Creates a new CustomFieldsGroup entity.
*/
#[Route(path: '/{_locale}/admin/customfieldsgroup/create', name: 'customfieldsgroup_create')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfieldsgroup/create', name: 'customfieldsgroup_create')]
public function createAction(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$entity = new CustomFieldsGroup();
@@ -68,14 +68,14 @@ class CustomFieldsGroupController extends AbstractController
return $this->render('@ChillCustomFields/CustomFieldsGroup/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* Displays a form to edit an existing CustomFieldsGroup entity.
*/
#[Route(path: '/{_locale}/admin/customfieldsgroup/{id}/edit', name: 'customfieldsgroup_edit')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfieldsgroup/{id}/edit', name: 'customfieldsgroup_edit')]
public function editAction(mixed $id): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -90,14 +90,14 @@ class CustomFieldsGroupController extends AbstractController
return $this->render('@ChillCustomFields/CustomFieldsGroup/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'edit_form' => $editForm,
]);
}
/**
* Lists all CustomFieldsGroup entities.
*/
#[Route(path: '/{_locale}/admin/customfieldsgroup/', name: 'customfieldsgroup')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfieldsgroup/', name: 'customfieldsgroup')]
public function indexAction(): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -123,7 +123,7 @@ class CustomFieldsGroupController extends AbstractController
/**
* Set the CustomField Group with id $cFGroupId as default.
*/
#[Route(path: '/{_locale}/admin/customfieldsgroup/makedefault', name: 'customfieldsgroup_makedefault')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfieldsgroup/makedefault', name: 'customfieldsgroup_makedefault')]
public function makeDefaultAction(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse
{
$form = $this->createMakeDefaultForm(null);
@@ -167,7 +167,7 @@ class CustomFieldsGroupController extends AbstractController
/**
* Displays a form to create a new CustomFieldsGroup entity.
*/
#[Route(path: '/{_locale}/admin/customfieldsgroup/new', name: 'customfieldsgroup_new')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfieldsgroup/new', name: 'customfieldsgroup_new')]
public function newAction(): \Symfony\Component\HttpFoundation\Response
{
$entity = new CustomFieldsGroup();
@@ -175,7 +175,7 @@ class CustomFieldsGroupController extends AbstractController
return $this->render('@ChillCustomFields/CustomFieldsGroup/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
@@ -224,14 +224,14 @@ class CustomFieldsGroupController extends AbstractController
return $this
->render('@test/CustomField/simple_form_render.html.twig', [
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* Finds and displays a CustomFieldsGroup entity.
*/
#[Route(path: '/{_locale}/admin/customfieldsgroup/{id}/show', name: 'customfieldsgroup_show')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfieldsgroup/{id}/show', name: 'customfieldsgroup_show')]
public function showAction(mixed $id): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -254,7 +254,7 @@ class CustomFieldsGroupController extends AbstractController
/**
* Edits an existing CustomFieldsGroup entity.
*/
#[Route(path: '/{_locale}/admin/customfieldsgroup/{id}/update', name: 'customfieldsgroup_update')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/customfieldsgroup/{id}/update', name: 'customfieldsgroup_update')]
public function updateAction(Request $request, mixed $id): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -282,7 +282,7 @@ class CustomFieldsGroupController extends AbstractController
return $this->render('@ChillCustomFields/CustomFieldsGroup/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'edit_form' => $editForm,
]);
}