Rector changes and immplementations of required methods

This commit is contained in:
2025-05-22 17:47:07 +02:00
parent 053b92b77c
commit 17db59d221
1138 changed files with 2656 additions and 2616 deletions

View File

@@ -32,7 +32,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'])]
public function createAction(mixed $person_id, Request $request)
public function createAction(mixed $person_id, Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$person = $this->managerRegistry->getManager()
->getRepository(Person::class)
@@ -87,7 +87,7 @@ class PersonAddressController extends AbstractController
}
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/person/{person_id}/address/{address_id}/edit', name: 'chill_person_address_edit')]
public function editAction(mixed $person_id, mixed $address_id)
public function editAction(mixed $person_id, mixed $address_id): \Symfony\Component\HttpFoundation\Response
{
$person = $this->managerRegistry->getManager()
->getRepository(Person::class)
@@ -115,7 +115,7 @@ class PersonAddressController extends AbstractController
}
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/person/{person_id}/address/list', name: 'chill_person_address_list')]
public function listAction(mixed $person_id)
public function listAction(mixed $person_id): \Symfony\Component\HttpFoundation\Response
{
$person = $this->managerRegistry->getManager()
->getRepository(Person::class)
@@ -137,7 +137,7 @@ class PersonAddressController extends AbstractController
}
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/person/{person_id}/address/new', name: 'chill_person_address_new')]
public function newAction(mixed $person_id)
public function newAction(mixed $person_id): \Symfony\Component\HttpFoundation\Response
{
$person = $this->managerRegistry->getManager()
->getRepository(Person::class)
@@ -164,7 +164,7 @@ class PersonAddressController extends AbstractController
}
#[\Symfony\Component\Routing\Annotation\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)
public function updateAction(mixed $person_id, mixed $address_id, Request $request): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
{
$person = $this->managerRegistry->getManager()
->getRepository(Person::class)