-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a book entry for serialization #4698
Comments
👍 for a book entry. Serialization is an important topic in modern apps. |
@dunglas I just merged #4675, which is great, but the docs for the built-in serializer are really poor right now. As 2.7 is the first release where we (you) have finally made the serializer great, we should move quickly on the docs for it. Honestly, when I read the serializer docs we have so far, I'm confused about how to use it. Here are some comments/questions I have - I am being a bit dumb, trying to get you my fresh impressions, which will probably be near what a new person will think:
Thanks! |
Hi, The doc must be updated. It's on my todo list... The two main thing to document IMO are:
It's because I've not changed the existing doc. To summarize:
It sounds good to me to just mention GetSetMethodNormalizer et PropertyNormalizer.
What about replacing the cookbook entry by a dedicated book entry (this issue)?
No, as for populating existing objects (another thing to document) and circular reference handling, I've moved this method it to IMO, using this method is not a good idea and I'm to promote the use of groups instead.
It's really up to you. I'll use only one "name converter" if there is only few case and split that converter if it start growing. |
@dunglas agree on all points, and thanks for the clarifications! Any help you can offer to get the docs going is much appreciated. My worry would be that we all get busy and it doesn't get updated, which for most users would mean that the component is still unusable, and that would be a shame :). I will do my best, but I'm spread too thin to be dependable.
Thanks @dunglas! |
…Minor enhancements. (dunglas) This PR was merged into the 2.7 branch. Discussion ---------- [Serializer] ObjectNormalizer, object_to_populate doc. Minor enhancements. | Q | A | ------------- | --- | Doc fix? | yes | New docs? | yes | Applies to | 2.7 | Fixed tickets | partially #4698 Commits ------- e1479e0 [Serializer] ObjectNormalizer, object_to_populate doc. Minor enhancements.
I guess this is still actual, I tried to find a documentation describing how to create custom normalizers (to add it to the FOSRestBundle doc) but I didn't find. |
@Ener-Getick such an article perfectly fits the components section, we don't need a book article for that. The good news is that you can start writing that article now :) And don't worry about your doc-writing capabilities, we'll help you to create a nice article. If you're unsure about anything, don't hesitate to ask for help in a comment on GitHub or via the #symfony-docs channel on IRC. |
Thanks @wouterj, I won't have a lot of time during the 2 next weeks but I will probably create a |
I opened #6428 |
Closing because we no longer have a book. Moreover, the main |
@javiereguiluz ok, thanks for the explanation ! |
The Serializer Component is being deeply reworked. It has gained some new features:
I'm also working on making it a first class citizen of the framework (registered with the DIC and usable out of the box):
The next step will be to create a book entry (similar to the validation chapter) presenting basics and common uses of the Serializer with the full stack framework. We already started to discuss about that here: #4692 (comment)
What do you think about that? cc @wouterj @fabpot @Tobion @lsmith77 @Seldaek
The text was updated successfully, but these errors were encountered: