poc form SDK (symfony 6)

This commit is contained in:
Benjamin Dalsass
2023-10-06 10:17:38 +02:00
parent 025c5edd15
commit bead496968
22 changed files with 108 additions and 232 deletions

View File

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