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

@@ -44,7 +44,7 @@ final class ParticipationController extends AbstractController
private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry,
) {}
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/participation/create', name: 'chill_event_participation_create')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/participation/create', name: 'chill_event_participation_create')]
public function createAction(Request $request): Response|\Symfony\Component\HttpFoundation\RedirectResponse
{
// test the request is correct
@@ -195,7 +195,7 @@ final class ParticipationController extends AbstractController
}
return $this->render('@ChillEvent/Participation/new.html.twig', [
'form' => $form->createView(),
'form' => $form,
'participation' => $participation,
]);
}
@@ -233,7 +233,7 @@ final class ParticipationController extends AbstractController
}
return $this->render('@ChillEvent/Participation/new.html.twig', [
'form' => $form->createView(),
'form' => $form,
'participation' => $participation,
'ignored_participations' => [],
]);
@@ -242,7 +242,7 @@ final class ParticipationController extends AbstractController
/**
* @param int $participation_id
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/participation/{participation_id}/delete', name: 'chill_event_participation_delete', requirements: ['participation_id' => '\d+'], methods: ['GET', 'DELETE'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/participation/{participation_id}/delete', name: 'chill_event_participation_delete', requirements: ['participation_id' => '\d+'], methods: ['GET', 'DELETE'])]
public function deleteAction($participation_id, Request $request): Response|\Symfony\Component\HttpFoundation\RedirectResponse
{
$em = $this->managerRegistry->getManager();
@@ -280,7 +280,7 @@ final class ParticipationController extends AbstractController
return $this->render('@ChillEvent/Participation/confirm_delete.html.twig', [
'event_id' => $event->getId(),
'delete_form' => $form->createView(),
'delete_form' => $form,
]);
}
@@ -290,7 +290,7 @@ final class ParticipationController extends AbstractController
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException if the participation is not found
* @throws \Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException if the user is not allowed to edit the participation
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/participation/{participation_id}/edit', name: 'chill_event_participation_edit')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/participation/{participation_id}/edit', name: 'chill_event_participation_edit')]
public function editAction(int $participation_id): Response
{
/** @var Participation $participation */
@@ -311,7 +311,7 @@ final class ParticipationController extends AbstractController
$form = $this->createEditForm($participation);
return $this->render('@ChillEvent/Participation/edit.html.twig', [
'form' => $form->createView(),
'form' => $form,
'participation' => $participation,
]);
}
@@ -321,7 +321,7 @@ final class ParticipationController extends AbstractController
*
* @param int $event_id
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/participation/{event_id}/edit_multiple', name: 'chill_event_participation_edit_multiple')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/participation/{event_id}/edit_multiple', name: 'chill_event_participation_edit_multiple')]
public function editMultipleAction($event_id): Response|\Symfony\Component\HttpFoundation\RedirectResponse
{
$event = $this->managerRegistry->getRepository(Event::class)
@@ -366,7 +366,7 @@ final class ParticipationController extends AbstractController
return $this->render('@ChillEvent/Participation/edit-multiple.html.twig', [
'event' => $event,
'participations' => $event->getParticipations(),
'form' => $form->createView(),
'form' => $form,
]);
}
@@ -377,7 +377,7 @@ final class ParticipationController extends AbstractController
* and decide if it should process a single or multiple participation. Depending
* on this, the appropriate layout and form.
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/participation/new', name: 'chill_event_participation_new')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/participation/new', name: 'chill_event_participation_new')]
public function newAction(Request $request): Response|\Symfony\Component\HttpFoundation\RedirectResponse
{
// test the request is correct
@@ -410,7 +410,7 @@ final class ParticipationController extends AbstractController
."'persons_ids' argument in query");
}
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/participation/{participation_id}/update', name: 'chill_event_participation_update', methods: ['POST'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/participation/{participation_id}/update', name: 'chill_event_participation_update', methods: ['POST'])]
public function updateAction(int $participation_id, Request $request): Response
{
/** @var Participation $participation */
@@ -447,12 +447,12 @@ final class ParticipationController extends AbstractController
}
return $this->render('@ChillEvent/Participation/edit.html.twig', [
'form' => $form->createView(),
'form' => $form,
'participation' => $participation,
]);
}
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/participation/{event_id}/update_multiple', name: 'chill_event_participation_update_multiple', methods: ['POST'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/participation/{event_id}/update_multiple', name: 'chill_event_participation_update_multiple', methods: ['POST'])]
public function updateMultipleAction(mixed $event_id, Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
/** @var Event $event */
@@ -493,7 +493,7 @@ final class ParticipationController extends AbstractController
return $this->render('@ChillEvent/Participation/edit-multiple.html.twig', [
'event' => $event,
'participations' => $event->getParticipations(),
'form' => $form->createView(),
'form' => $form,
]);
}
@@ -664,7 +664,7 @@ final class ParticipationController extends AbstractController
return $this->render(
'@ChillEvent/Participation/new-multiple.html.twig',
[
'form' => $form->createView(),
'form' => $form,
'participations' => $newParticipations,
'ignored_participations' => $ignoredParticipations,
]
@@ -677,7 +677,7 @@ final class ParticipationController extends AbstractController
return $this->render(
'@ChillEvent/Participation/new.html.twig',
[
'form' => $form->createView(),
'form' => $form,
'participation' => $participation,
'ignored_participations' => $ignoredParticipations,
]
@@ -705,7 +705,7 @@ final class ParticipationController extends AbstractController
$form = $this->createCreateForm($participation, $returnPath);
return $this->render('@ChillEvent/Participation/new.html.twig', [
'form' => $form->createView(),
'form' => $form,
'participation' => $participation,
'ignored_participations' => [], // this is required, see self::newMultiple
]);