- Other Features
- Added the
Spiral\Serializer\Symfony\Normalizer\RamseyUuidNormalizer
class to normalize and denormalize UUID objects.
- Added the
- High Impact Changes
- Since version 2.0.0, serializers are registered with names
symfony-json
,symfony-csv
,symfony-xml
,symfony-yaml
. To avoid name conflicts with other serializers. - Since version 2.0.0, methods
getEncoders
, andgetNormalizers
, of the classSpiral\Serializer\Symfony\Config\SerializerConfig
returns empty arrays by default. Default encoders and normalizers are configured inSpiral\Serializer\Symfony\EncodersRegistry
andSpiral\Serializer\Symfony\NormalizersRegistry
. - Removed methods
getDefaultEncoders
andgetDefaultNormalizers
in the configuration classSpiral\Serializer\Symfony\Config\SerializerConfig
.
- Since version 2.0.0, serializers are registered with names
- Other Features
- Added the priority parameter to the
register
method of interfaceSpiral\Serializer\Symfony\NormalizersRegistryInterface
. This will allow normalizers and denormalizers to be registered in the correct order. Default ones are added with a priority that allows you to add your own between them.
- Added the priority parameter to the
- Other Features
- Allowed
doctrine/annotations:2.0
- Psalm v5
- Allowed
- initial release