mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-04 20:39:40 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user