mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 10:05:03 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -109,7 +109,7 @@ final class PersonResourceController extends AbstractController
|
||||
}
|
||||
|
||||
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/person/{person_id}/resources/list', name: 'chill_person_resource_list')]
|
||||
public function listAction(Request $request, mixed $person_id)
|
||||
public function listAction(Request $request, mixed $person_id): \Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$personOwner = $this->personRepository->find($person_id);
|
||||
$this->denyAccessUnlessGranted(PersonVoter::SEE, $personOwner);
|
||||
@@ -127,7 +127,7 @@ final class PersonResourceController extends AbstractController
|
||||
}
|
||||
|
||||
#[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/person/{person_id}/resources/new', name: 'chill_person_resource_new')]
|
||||
public function newAction(Request $request, mixed $person_id)
|
||||
public function newAction(Request $request, mixed $person_id): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
|
||||
{
|
||||
$personOwner = $this->personRepository->find($person_id);
|
||||
$personResource = new PersonResource();
|
||||
|
Reference in New Issue
Block a user