Add getSupportedTypes method for (de)normalizerInterface implementations

This commit is contained in:
2025-05-26 11:21:59 +02:00
parent 9fcc1634f5
commit a5049ddefb
34 changed files with 277 additions and 2 deletions

View File

@@ -45,4 +45,11 @@ class CollectionNormalizer implements NormalizerAwareInterface, NormalizerInterf
{
return $data instanceof Collection;
}
public function getSupportedTypes(?string $format): array
{
return [
Collection::class => true,
];
}
}