Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Serializer Demystified

Serializer Demystified

The Serializer is an essential tool when building APIs with Symfony. Knowing it in more detail can save you a lot of time when you want to customize how your data is handled. In this talk we will look at how the Symfony Serializer works by default by having a deeper look at the provided Normalizers and then we will look at some use cases for customizing both how data is serialized and deserialized.

Denis Brumann

December 03, 2020
Tweet

More Decks by Denis Brumann

Other Decks in Programming

Transcript

  1. GetSetMethodNormalizer get…, is…, has… set… PropertyNormalizer Reflection for accessing class

    attributes ObjectNormalizer Uses Symfony PropertyAccess: get…, is…, has… public properties add…/remove… for single entry in collections