mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 13:03:50 +00:00
Apply rector rules: symfony up to 54
This commit is contained in:
@@ -36,11 +36,7 @@ class PersonApiController extends ApiController
|
||||
$this->showCenters = $parameterBag->get('chill_main')['acl']['form_show_centers'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/api/1.0/person/creation/authorized-centers",
|
||||
* name="chill_person_person_creation_authorized_centers"
|
||||
* )
|
||||
*/
|
||||
#[Route(path: '/api/1.0/person/creation/authorized-centers', name: 'chill_person_person_creation_authorized_centers')]
|
||||
public function authorizedCentersForCreation(): Response
|
||||
{
|
||||
$centers = $this->authorizedCenterOnPersonCreation->getCenters();
|
||||
@@ -53,14 +49,7 @@ class PersonApiController extends ApiController
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/api/1.0/person/config/alt_names.{_format}",
|
||||
* name="chill_person_config_alt_names",
|
||||
* requirements={
|
||||
* "_format": "json"
|
||||
* }
|
||||
* )
|
||||
*/
|
||||
#[Route(path: '/api/1.0/person/config/alt_names.{_format}', name: 'chill_person_config_alt_names', requirements: ['_format' => 'json'])]
|
||||
public function configAltNames(Request $request, string $_format): Response
|
||||
{
|
||||
$configAltNamesChoices = $this->configPersonAltNameHelper->getChoices();
|
||||
@@ -83,15 +72,9 @@ class PersonApiController extends ApiController
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/api/1.0/person/address/suggest/by-person/{person_id}.{_format}",
|
||||
* name="chill_person_address_suggest_by_person",
|
||||
* requirements={
|
||||
* "_format": "json"
|
||||
* }
|
||||
* )
|
||||
*
|
||||
* @ParamConverter("person", options={"id": "person_id"})
|
||||
*/
|
||||
#[Route(path: '/api/1.0/person/address/suggest/by-person/{person_id}.{_format}', name: 'chill_person_address_suggest_by_person', requirements: ['_format' => 'json'])]
|
||||
public function suggestAddress(Person $person, Request $request, string $_format): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted(PersonVoter::SEE, $person);
|
||||
|
Reference in New Issue
Block a user