pomm-project / pomm-bundle

Pomm2 bundle for Symfony
81 stars 31 forks source link

Flexible entity serializer normalizer #49

Closed SebLours closed 8 years ago

SebLours commented 8 years ago

For my project, i create a normalizer for the Symfony serializer. It improves serializer performance and use Pomm logic for FlexibleEntity instances.

https://gist.github.com/SebLours/2b6cb67ce3f99c35d146

Did you think, it can be add to the bundle ?

sanpii commented 8 years ago

It’s a good idea to make symfony serializer works with FlexibleEntity, but I think it’s better to do this with implementing the JsonSerializable interface.

SebLours commented 8 years ago

You're right when you want to serialize in json, but the symfony serializer not only supports json format.

sanpii commented 8 years ago

You right. You can make a PR for the pomm-symfony-bridge project.

SebLours commented 8 years ago

Here it is https://github.com/pomm-project/pomm-symfony-bridge/pull/22

sanpii commented 8 years ago

https://github.com/pomm-project/pomm-symfony-bridge/pull/22 merged.