{"push_id":987400619,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"2f8f9d445a5e377b138c8790a369744cf5b5a61b","before":"66a64ae3cff2f9fb9babd43d3d047bfcf5f75f38","commits":[{"sha":"790fb6e760a764fd51630fa94c60e0152e62d8ff","author":{"email":"ba93d0f004ceb34e7fb76d30fe3562ed898e84ed@jolicode.com","name":"Joel Wurtz"},"message":"Add normalizer / denormalizer awarness","distinct":true,"url":"https://api.github.com/repos/symfony/symfony/commits/790fb6e760a764fd51630fa94c60e0152e62d8ff"},{"sha":"2f8f9d445a5e377b138c8790a369744cf5b5a61b","author":{"email":"60dd2208f9e77f1494860be18b32351d8423fe44@gmail.com","name":"Kévin Dunglas"},"message":"feature #17545 [Serializer] Add normalizer / denormalizer awarness (joelwurtz)\n\nThis PR was merged into the 3.1-dev branch.\n\nDiscussion\n----------\n\n[Serializer] Add normalizer / denormalizer awarness\n\n| Q             | A\n| ------------- | ---\n| Bug fix?      | no\n| New feature?  | yes\n| BC breaks?    | no\n| Deprecations? | yes\n| Tests pass?   | yes\n| Fixed tickets |\n| License       | MIT\n| Doc PR        |\n\nSerializerAwareInterface is not really usable in a decode -> normalize context, as if we need to transform a subproperty with another class, we only have the context of a serialize however the data is already decoded so it will fail.\n\nThis interfaces allow a normalizer / denormalizer to have a sub normalization / denormalization process context and not the whole context with serializer.\n\nI have also add a `AwareNormalizer` which is an abstract class implementing the 3 aware interfaces like it was done with the SerializerAwareNormalizer, since it's a standard way to implement this interfaces.\n\nThis is needed for #17516, other solution would be to have a RawDecoder which don't decode and return the input as it is, but really not a fan of this solution.\n\nCommits\n-------\n\n790fb6e Add normalizer / denormalizer awarness","distinct":true,"url":"https://api.github.com/repos/symfony/symfony/commits/2f8f9d445a5e377b138c8790a369744cf5b5a61b"}]}