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

@@ -23,7 +23,7 @@ class AdminController extends AbstractController
/**
* Event admin.
*/
#[Route(path: '/{_locale}/admin/event', name: 'chill_event_admin_index')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event', name: 'chill_event_admin_index')]
public function indexAdminAction(): \Symfony\Component\HttpFoundation\Response
{
return $this->render('@ChillEvent/Admin/index.html.twig');

View File

@@ -61,7 +61,7 @@ final class EventController extends AbstractController
private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry,
) {}
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{event_id}/delete', name: 'chill_event__event_delete', requirements: ['event_id' => '\d+'], methods: ['GET', 'POST', 'DELETE'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/event/{event_id}/delete', name: 'chill_event__event_delete', requirements: ['event_id' => '\d+'], methods: ['GET', 'POST', 'DELETE'])]
public function deleteAction($event_id, Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|Response
{
$em = $this->managerRegistry->getManager();
@@ -104,7 +104,7 @@ final class EventController extends AbstractController
return $this->render('@ChillEvent/Event/confirm_delete.html.twig', [
'event_id' => $event->getId(),
'delete_form' => $form->createView(),
'delete_form' => $form,
]);
}
@@ -113,7 +113,7 @@ final class EventController extends AbstractController
*
* @throws \Doctrine\ORM\NonUniqueResultException
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{person_id}/list', name: 'chill_event__list_by_person', methods: ['GET'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/event/{person_id}/list', name: 'chill_event__list_by_person', methods: ['GET'])]
public function listByPersonAction($person_id): Response
{
$em = $this->managerRegistry->getManager();
@@ -155,11 +155,11 @@ final class EventController extends AbstractController
'participations' => $participations,
'person' => $person,
'paginator' => $paginator,
'form_add_event_participation_by_person' => $addEventParticipationByPersonForm->createView(),
'form_add_event_participation_by_person' => $addEventParticipationByPersonForm,
]);
}
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/most_recent', name: 'chill_event_list_most_recent', options: [null])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/event/most_recent', name: 'chill_event_list_most_recent', options: [null])]
public function mostRecentIndexAction(): \Symfony\Component\HttpFoundation\RedirectResponse
{
return $this->redirectToRoute('chill_main_search', [
@@ -170,7 +170,7 @@ final class EventController extends AbstractController
/**
* Displays a form to create a new Event entity.
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/new', name: 'chill_event__event_new', methods: ['GET', 'POST'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/event/new', name: 'chill_event__event_new', methods: ['GET', 'POST'])]
public function newAction(?Center $center, Request $request): Response
{
$user = $this->security->getUser();
@@ -204,14 +204,14 @@ final class EventController extends AbstractController
return $this->render('@ChillEvent/Event/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* First step of new Event form.
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/new/pick-center', name: 'chill_event__event_new_pickcenter', options: [null])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/event/new/pick-center', name: 'chill_event__event_new_pickcenter', options: [null])]
public function newPickCenterAction(): Response
{
$role = 'CHILL_EVENT_CREATE';
@@ -247,7 +247,7 @@ final class EventController extends AbstractController
->getForm();
return $this->render('@ChillEvent/Event/newPickCenter.html.twig', [
'form' => $form->createView(),
'form' => $form,
]);
}
@@ -260,7 +260,7 @@ final class EventController extends AbstractController
*
* @throws \PhpOffice\PhpSpreadsheet\Exception
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{event_id}/show', name: 'chill_event__event_show')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/event/{event_id}/show', name: 'chill_event__event_show')]
public function showAction(Event $event, Request $request)
{
if (!$event) {
@@ -283,7 +283,7 @@ final class EventController extends AbstractController
return $this->render('@ChillEvent/Event/show.html.twig', [
'event' => $event,
'form_add_participation_by_person' => $addParticipationByPersonForm->createView(),
'form_add_participation_by_person' => $addParticipationByPersonForm,
'form_export' => $exportParticipationsList['form']->createView(),
]);
}
@@ -291,7 +291,7 @@ final class EventController extends AbstractController
/**
* Edits an existing Event entity.
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{event_id}/edit', name: 'chill_event__event_edit', methods: ['GET', 'POST', 'PUT'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/event/event/{event_id}/edit', name: 'chill_event__event_edit', methods: ['GET', 'POST', 'PUT'])]
public function updateAction(Request $request, $event_id): \Symfony\Component\HttpFoundation\RedirectResponse|Response
{
$em = $this->managerRegistry->getManager();
@@ -322,7 +322,7 @@ final class EventController extends AbstractController
return $this->render('@ChillEvent/Event/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'edit_form' => $editForm,
]);
}

View File

@@ -42,7 +42,7 @@ final readonly class EventListController
private UrlGeneratorInterface $urlGenerator,
) {}
#[Route(path: '{_locale}/event/event/list', name: 'chill_event_event_list')]
#[\Symfony\Component\Routing\Attribute\Route(path: '{_locale}/event/event/list', name: 'chill_event_event_list')]
public function __invoke(): Response
{
$filter = $this->buildFilterOrder();

View File

@@ -28,7 +28,7 @@ class EventTypeController extends AbstractController
/**
* Creates a new EventType entity.
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/admin/event/event_type/create', name: 'chill_eventtype_admin_create', methods: ['POST'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/event_type/create', name: 'chill_eventtype_admin_create', methods: ['POST'])]
public function createAction(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$entity = new EventType();
@@ -45,14 +45,14 @@ class EventTypeController extends AbstractController
return $this->render('@ChillEvent/EventType/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* Deletes a EventType entity.
*/
#[Route(path: '/{_locale}/admin/event/event_type/{id}/delete', name: 'chill_eventtype_admin_delete', methods: ['POST', 'DELETE'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/event_type/{id}/delete', name: 'chill_eventtype_admin_delete', methods: ['POST', 'DELETE'])]
public function deleteAction(Request $request, mixed $id): \Symfony\Component\HttpFoundation\RedirectResponse
{
$form = $this->createDeleteForm($id);
@@ -76,7 +76,7 @@ class EventTypeController extends AbstractController
/**
* Displays a form to edit an existing EventType entity.
*/
#[Route(path: '/{_locale}/admin/event/event_type/{id}/edit', name: 'chill_eventtype_admin_edit')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/event_type/{id}/edit', name: 'chill_eventtype_admin_edit')]
public function editAction(mixed $id): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -92,15 +92,15 @@ class EventTypeController extends AbstractController
return $this->render('@ChillEvent/EventType/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'delete_form' => $deleteForm->createView(),
'edit_form' => $editForm,
'delete_form' => $deleteForm,
]);
}
/**
* Lists all EventType entities.
*/
#[Route(path: '/{_locale}/admin/event/event_type/', name: 'chill_eventtype_admin', options: [null])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/event_type/', name: 'chill_eventtype_admin', options: [null])]
public function indexAction(): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -115,7 +115,7 @@ class EventTypeController extends AbstractController
/**
* Displays a form to create a new EventType entity.
*/
#[Route(path: '/{_locale}/admin/event/event_type/new', name: 'chill_eventtype_admin_new')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/event_type/new', name: 'chill_eventtype_admin_new')]
public function newAction(): \Symfony\Component\HttpFoundation\Response
{
$entity = new EventType();
@@ -123,14 +123,14 @@ class EventTypeController extends AbstractController
return $this->render('@ChillEvent/EventType/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* Finds and displays a EventType entity.
*/
#[Route(path: '/{_locale}/admin/event/event_type/{id}/show', name: 'chill_eventtype_admin_show')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/event_type/{id}/show', name: 'chill_eventtype_admin_show')]
public function showAction(mixed $id): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -145,14 +145,14 @@ class EventTypeController extends AbstractController
return $this->render('@ChillEvent/EventType/show.html.twig', [
'entity' => $entity,
'delete_form' => $deleteForm->createView(),
'delete_form' => $deleteForm,
]);
}
/**
* Edits an existing EventType entity.
*/
#[Route(path: '/{_locale}/admin/event/event_type/{id}/update', name: 'chill_eventtype_admin_update', methods: ['POST', 'PUT'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/event_type/{id}/update', name: 'chill_eventtype_admin_update', methods: ['POST', 'PUT'])]
public function updateAction(Request $request, mixed $id): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -175,8 +175,8 @@ class EventTypeController extends AbstractController
return $this->render('@ChillEvent/EventType/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'delete_form' => $deleteForm->createView(),
'edit_form' => $editForm,
'delete_form' => $deleteForm,
]);
}

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
]);

View File

@@ -28,7 +28,7 @@ class RoleController extends AbstractController
/**
* Creates a new Role entity.
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/admin/event/role/create', name: 'chill_event_admin_role_create', methods: ['POST'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/role/create', name: 'chill_event_admin_role_create', methods: ['POST'])]
public function createAction(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$entity = new Role();
@@ -45,14 +45,14 @@ class RoleController extends AbstractController
return $this->render('@ChillEvent/Role/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* Deletes a Role entity.
*/
#[Route(path: '/{_locale}/admin/event/role/{id}/delete', name: 'chill_event_admin_role_delete', methods: ['POST', 'DELETE'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/role/{id}/delete', name: 'chill_event_admin_role_delete', methods: ['POST', 'DELETE'])]
public function deleteAction(Request $request, mixed $id): \Symfony\Component\HttpFoundation\RedirectResponse
{
$form = $this->createDeleteForm($id);
@@ -76,7 +76,7 @@ class RoleController extends AbstractController
/**
* Displays a form to edit an existing Role entity.
*/
#[Route(path: '/{_locale}/admin/event/role/{id}/edit', name: 'chill_event_admin_role_edit')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/role/{id}/edit', name: 'chill_event_admin_role_edit')]
public function editAction(mixed $id): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -92,15 +92,15 @@ class RoleController extends AbstractController
return $this->render('@ChillEvent/Role/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'delete_form' => $deleteForm->createView(),
'edit_form' => $editForm,
'delete_form' => $deleteForm,
]);
}
/**
* Lists all Role entities.
*/
#[Route(path: '/{_locale}/admin/event/role/', name: 'chill_event_admin_role', options: [null])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/role/', name: 'chill_event_admin_role', options: [null])]
public function indexAction(): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -115,7 +115,7 @@ class RoleController extends AbstractController
/**
* Displays a form to create a new Role entity.
*/
#[Route(path: '/{_locale}/admin/event/role/new', name: 'chill_event_admin_role_new')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/role/new', name: 'chill_event_admin_role_new')]
public function newAction(): \Symfony\Component\HttpFoundation\Response
{
$entity = new Role();
@@ -123,14 +123,14 @@ class RoleController extends AbstractController
return $this->render('@ChillEvent/Role/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* Finds and displays a Role entity.
*/
#[Route(path: '/{_locale}/admin/event/role/{id}/show', name: 'chill_event_admin_role_show')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/role/{id}/show', name: 'chill_event_admin_role_show')]
public function showAction(mixed $id): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -145,14 +145,14 @@ class RoleController extends AbstractController
return $this->render('@ChillEvent/Role/show.html.twig', [
'entity' => $entity,
'delete_form' => $deleteForm->createView(),
'delete_form' => $deleteForm,
]);
}
/**
* Edits an existing Role entity.
*/
#[Route(path: '/{_locale}/admin/event/role/{id}/update', name: 'chill_event_admin_role_update', methods: ['POST', 'PUT'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/role/{id}/update', name: 'chill_event_admin_role_update', methods: ['POST', 'PUT'])]
public function updateAction(Request $request, mixed $id): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -175,8 +175,8 @@ class RoleController extends AbstractController
return $this->render('@ChillEvent/Role/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'delete_form' => $deleteForm->createView(),
'edit_form' => $editForm,
'delete_form' => $deleteForm,
]);
}

View File

@@ -28,7 +28,7 @@ class StatusController extends AbstractController
/**
* Creates a new Status entity.
*/
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/admin/event/status/create', name: 'chill_event_admin_status_create', methods: ['POST'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/status/create', name: 'chill_event_admin_status_create', methods: ['POST'])]
public function createAction(Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$entity = new Status();
@@ -45,14 +45,14 @@ class StatusController extends AbstractController
return $this->render('@ChillEvent/Status/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* Deletes a Status entity.
*/
#[Route(path: '/{_locale}/admin/event/status/{id}/delete', name: 'chill_event_admin_status_delete', methods: ['POST', 'DELETE'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/status/{id}/delete', name: 'chill_event_admin_status_delete', methods: ['POST', 'DELETE'])]
public function deleteAction(Request $request, mixed $id): \Symfony\Component\HttpFoundation\RedirectResponse
{
$form = $this->createDeleteForm($id);
@@ -76,7 +76,7 @@ class StatusController extends AbstractController
/**
* Displays a form to edit an existing Status entity.
*/
#[Route(path: '/{_locale}/admin/event/status/{id}/edit', name: 'chill_event_admin_status_edit')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/status/{id}/edit', name: 'chill_event_admin_status_edit')]
public function editAction(mixed $id): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -92,15 +92,15 @@ class StatusController extends AbstractController
return $this->render('@ChillEvent/Status/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'delete_form' => $deleteForm->createView(),
'edit_form' => $editForm,
'delete_form' => $deleteForm,
]);
}
/**
* Lists all Status entities.
*/
#[Route(path: '/{_locale}/admin/event/status/', name: 'chill_event_admin_status', options: [null])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/status/', name: 'chill_event_admin_status', options: [null])]
public function indexAction(): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -115,7 +115,7 @@ class StatusController extends AbstractController
/**
* Displays a form to create a new Status entity.
*/
#[Route(path: '/{_locale}/admin/event/status/new', name: 'chill_event_admin_status_new')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/status/new', name: 'chill_event_admin_status_new')]
public function newAction(): \Symfony\Component\HttpFoundation\Response
{
$entity = new Status();
@@ -123,14 +123,14 @@ class StatusController extends AbstractController
return $this->render('@ChillEvent/Status/new.html.twig', [
'entity' => $entity,
'form' => $form->createView(),
'form' => $form,
]);
}
/**
* Finds and displays a Status entity.
*/
#[Route(path: '/{_locale}/admin/event/status/{id}/show', name: 'chill_event_admin_status_show')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/status/{id}/show', name: 'chill_event_admin_status_show')]
public function showAction(mixed $id): \Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -145,14 +145,14 @@ class StatusController extends AbstractController
return $this->render('@ChillEvent/Status/show.html.twig', [
'entity' => $entity,
'delete_form' => $deleteForm->createView(),
'delete_form' => $deleteForm,
]);
}
/**
* Edits an existing Status entity.
*/
#[Route(path: '/{_locale}/admin/event/status/{id}/update', name: 'chill_event_admin_status_update', methods: ['POST', 'PUT'])]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/admin/event/status/{id}/update', name: 'chill_event_admin_status_update', methods: ['POST', 'PUT'])]
public function updateAction(Request $request, mixed $id): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$em = $this->managerRegistry->getManager();
@@ -175,8 +175,8 @@ class StatusController extends AbstractController
return $this->render('@ChillEvent/Status/edit.html.twig', [
'entity' => $entity,
'edit_form' => $editForm->createView(),
'delete_form' => $deleteForm->createView(),
'edit_form' => $editForm,
'delete_form' => $deleteForm,
]);
}

View File

@@ -66,7 +66,7 @@ class TimelineEventProvider implements TimelineProviderInterface
*
* @throws \Doctrine\ORM\Mapping\MappingException
*/
public function fetchQuery($context, array $args)
public function fetchQuery($context, array $args): \Chill\MainBundle\Timeline\TimelineSingleQuery
{
$this->checkContext($context);