Aloha,

Quo vadis?

The core serializer component is quite easy to grasp. It can work for many 
simpler use cases and is decently extensible for these use cases. However it 
has some limitations, specifically at times its difficult to get an optimized 
representation in multiple output formats (say XML and JSON) from the same data 
structure. Furthermore all configuration must be set directly on the serializer 
itself (see also https://github.com/symfony/symfony/pull/4938).

Then there is JMSSerializerBundle. This Bundle is very powerful at serializing 
object graphs and can handle generation of output optimized for multiple output 
formats from the same data structure. Furthermore the configuration is done on 
the objects themselves. However its support for array's isnt really good and 
often times its necessary to cast objects to other's in order to better control 
this configuration. Furthermore the visitor pattern is harder to grasp but much 
more powerful. Also note that currently the Bundle does not use the core 
interfaces all though we have done changes to those interfaces for 2.1 to make 
it possible.

Now the question is what should we have in core? Should we even have a 
serializer in core? Should that serializer rather be along the lines of 
JMSSerializerBundle? Should we have both approaches in core (of course using 
the same interfaces)?

Discuss .. :)

regards,
Lukas Kahwe Smith
m...@pooteeweet.org



-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to