mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 09:05:01 +00:00
Add getSupportedTypes method for (de)normalizerInterface implementations
This commit is contained in:
@@ -137,4 +137,12 @@ class AccompanyingPeriodWorkNormalizer implements \Symfony\Component\Serializer\
|
||||
default => false,
|
||||
};
|
||||
}
|
||||
|
||||
public function getSupportedTypes(?string $format): array
|
||||
{
|
||||
return match ($format) {
|
||||
'json', 'docgen' => [AccompanyingPeriodWork::class => true],
|
||||
default => [],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user