You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMO you can already extend and override normalize(), handling any special types you want to handle, then defer to the parent method for the rest. I don't really see what a more complicated system would bring there given this isn't a very common case I think.
Many times, I encountered use cases around custom normalization.
To name a few:
I understand that we can write our Processor or a Formatter or implement the JsonSerializable to achieve that.
But I can also see that the "nomalization" logic was the main customisation we really needed in those use cases.
The
NormalizerFormatter
class is great and I don't want to duplicate its logic.What do you think if we make it more flexible and customizable?
Suggestion 1: introduce protected normalizeObject() method
Suggestion 2: introduce normalizer components
Or other suggestions? or not really worth it?
The text was updated successfully, but these errors were encountered: