mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-18 18:07:50 +00:00
Add getSupportedTypes method for (de)normalizerInterface implementations
This commit is contained in:
@@ -241,4 +241,9 @@ class PersonJsonNormalizer implements DenormalizerAwareInterface, NormalizerAwar
|
||||
)
|
||||
->toArray();
|
||||
}
|
||||
|
||||
public function getSupportedTypes(?string $format): array
|
||||
{
|
||||
return 'json' === $format ? [Person::class => true] : [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user