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:
@@ -46,7 +46,7 @@ class HouseholdApiController extends ApiController
|
||||
/**
|
||||
* @return \Symfony\Component\HttpFoundation\JsonResponse
|
||||
*/
|
||||
#[Route(path: '/api/1.0/person/household/by-address-reference/{id}.json', name: 'chill_api_person_household_by_address_reference')]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '/api/1.0/person/household/by-address-reference/{id}.json', name: 'chill_api_person_household_by_address_reference')]
|
||||
public function getHouseholdByAddressReference(AddressReference $addressReference): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted('ROLE_USER');
|
||||
@@ -68,7 +68,7 @@ class HouseholdApiController extends ApiController
|
||||
/**
|
||||
* Add an address to a household.
|
||||
*/
|
||||
#[Route(path: '/api/1.0/person/household/{id}/address.{_format}', name: 'chill_api_single_household_address', methods: ['POST'], requirements: ['_format' => 'json'])]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '/api/1.0/person/household/{id}/address.{_format}', name: 'chill_api_single_household_address', methods: ['POST'], requirements: ['_format' => 'json'])]
|
||||
public function householdAddressApi(Household $household, Request $request, string $_format): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted(HouseholdVoter::EDIT, $household);
|
||||
@@ -112,7 +112,7 @@ class HouseholdApiController extends ApiController
|
||||
/**
|
||||
* @ParamConverter("household", options={"id": "household_id"})
|
||||
*/
|
||||
#[Route(path: '/api/1.0/person/address/suggest/by-household/{household_id}.{_format}', name: 'chill_person_address_suggest_by_household', requirements: ['_format' => 'json'])]
|
||||
#[\Symfony\Component\Routing\Attribute\Route(path: '/api/1.0/person/address/suggest/by-household/{household_id}.{_format}', name: 'chill_person_address_suggest_by_household', requirements: ['_format' => 'json'])]
|
||||
public function suggestAddressByHousehold(Household $household, string $_format): \Symfony\Component\HttpFoundation\JsonResponse
|
||||
{
|
||||
// TODO add acl
|
||||
|
Reference in New Issue
Block a user