poc form SDK (symfony 6)

This commit is contained in:
Benjamin Dalsass
2023-11-06 14:00:26 +01:00
parent bead496968
commit 43b73b425a
7 changed files with 9 additions and 8 deletions

View File

@@ -31,9 +31,9 @@ use Combodo\iTop\DI\Services\Orm;
class ParamConverterTestController extends AbstractController
{
#[Route('/param_converter_test/Person/{id<\d+>}', name: 'param_converter_test', methods: ['GET'], priority: 1)]
#[Route('/param_converter_test/Person/{person_id<\d+>}', name: 'param_converter_test', methods: ['GET'], priority: 1)]
public function convert(Request $request,
#[Orm(mapping: 'id')] Person $person,
#[Orm(mapping: 'person_id')] Person $person,
#[MapQueryParameter(filter: \FILTER_VALIDATE_INT)] int $age = 22
) : Response
{