mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-04 20:39:40 +00:00
Run symfonysetlist up to symfony_70
This commit is contained in:
@@ -31,7 +31,7 @@ class PersonAddressController extends AbstractController
|
||||
*/
|
||||
public function __construct(private readonly ValidatorInterface $validator, private readonly TranslatorInterface $translator, private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry) {}
|
||||
|
||||
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/person/{person_id}/address/create', name: 'chill_person_address_create', methods: ['POST'])]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/person/{person_id}/address/create', name: 'chill_person_address_create', methods: ['POST'])]
|
||||
public function createAction(mixed $person_id, Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$person = $this->managerRegistry->getManager()
|
||||
@@ -82,11 +82,11 @@ class PersonAddressController extends AbstractController
|
||||
|
||||
return $this->render('@ChillPerson/Address/new.html.twig', [
|
||||
'person' => $person,
|
||||
'form' => $form->createView(),
|
||||
'form' => $form,
|
||||
]);
|
||||
}
|
||||
|
||||
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/person/{person_id}/address/{address_id}/edit', name: 'chill_person_address_edit')]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/person/{person_id}/address/{address_id}/edit', name: 'chill_person_address_edit')]
|
||||
public function editAction(mixed $person_id, mixed $address_id): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$person = $this->managerRegistry->getManager()
|
||||
@@ -110,11 +110,11 @@ class PersonAddressController extends AbstractController
|
||||
return $this->render('@ChillPerson/Address/edit.html.twig', [
|
||||
'person' => $person,
|
||||
'address' => $address,
|
||||
'form' => $form->createView(),
|
||||
'form' => $form,
|
||||
]);
|
||||
}
|
||||
|
||||
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/person/{person_id}/address/list', name: 'chill_person_address_list')]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/person/{person_id}/address/list', name: 'chill_person_address_list')]
|
||||
public function listAction(mixed $person_id): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$person = $this->managerRegistry->getManager()
|
||||
@@ -136,7 +136,7 @@ class PersonAddressController extends AbstractController
|
||||
]);
|
||||
}
|
||||
|
||||
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/person/{person_id}/address/new', name: 'chill_person_address_new')]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/person/{person_id}/address/new', name: 'chill_person_address_new')]
|
||||
public function newAction(mixed $person_id): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$person = $this->managerRegistry->getManager()
|
||||
@@ -159,11 +159,11 @@ class PersonAddressController extends AbstractController
|
||||
|
||||
return $this->render('@ChillPerson/Address/new.html.twig', [
|
||||
'person' => $person,
|
||||
'form' => $form->createView(),
|
||||
'form' => $form,
|
||||
]);
|
||||
}
|
||||
|
||||
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/person/{person_id}/address/{address_id}/update', name: 'chill_person_address_update')]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/person/{person_id}/address/{address_id}/update', name: 'chill_person_address_update')]
|
||||
public function updateAction(mixed $person_id, mixed $address_id, Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$person = $this->managerRegistry->getManager()
|
||||
@@ -212,7 +212,7 @@ class PersonAddressController extends AbstractController
|
||||
return $this->render('@ChillPerson/Address/edit.html.twig', [
|
||||
'person' => $person,
|
||||
'address' => $address,
|
||||
'form' => $form->createView(),
|
||||
'form' => $form,
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user