mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-15 09:49:41 +00:00
Add getSupportedTypes method for (de)normalizerInterface implementations
This commit is contained in:
@@ -45,4 +45,11 @@ class CollectionNormalizer implements NormalizerAwareInterface, NormalizerInterf
|
||||
{
|
||||
return $data instanceof Collection;
|
||||
}
|
||||
|
||||
public function getSupportedTypes(?string $format): array
|
||||
{
|
||||
return [
|
||||
Collection::class => true,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user