Remove no longer used annotation use statements and replace with attribute use statements

This commit is contained in:
2025-10-01 18:38:41 +02:00
parent d8528dceab
commit 32d2bb002b
486 changed files with 495 additions and 1063 deletions

View File

@@ -453,7 +453,7 @@ final class ParticipationController extends AbstractController
}
#[\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
public function updateMultipleAction(mixed $event_id, Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|Response
{
/** @var Event $event */
$event = $this->managerRegistry->getRepository(Event::class)
@@ -686,10 +686,8 @@ final class ParticipationController extends AbstractController
/**
* Show a form with single participation.
*
* @return Response
*/
protected function newSingle(Request $request): \Symfony\Component\HttpFoundation\Response
protected function newSingle(Request $request): Response
{
$returnPath = $request->query->has('return_path') ?
$request->query->get('return_path') : null;
@@ -744,10 +742,7 @@ final class ParticipationController extends AbstractController
}
}
/**
* @return FormInterface
*/
private function createDeleteForm($participation_id): \Symfony\Component\Form\FormInterface
private function createDeleteForm($participation_id): FormInterface
{
return $this->createFormBuilder()
->setAction($this->generateUrl('chill_event_participation_delete', [