adaptations after having merged ticket-app-master

This commit is contained in:
2025-12-22 17:23:50 +01:00
parent 43d6a86627
commit 35d91762d3
42 changed files with 194 additions and 157 deletions

View File

@@ -148,8 +148,17 @@ final class PersonJsonDenormalizer implements DenormalizerInterface, Denormalize
return $person;
}
public function supportsDenormalization($data, $type, $format = null): bool
public function supportsDenormalization($data, $type, $format = null, array $context = []): bool
{
return Person::class === $type && 'person' === ($data['type'] ?? null) && !isset($data['id']);
}
public function getSupportedTypes(?string $format): array
{
if ('json' === $format) {
return [Person::class => false];
}
return [];
}
}