Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP] Reorganize the Serializer documentation#6428

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
GuilhemN wants to merge3 commits intosymfony:2.3fromGuilhemN:SERIALIZER

Conversation

@GuilhemN
Copy link
Contributor

QA
Doc fix?yes (reorganization)
New docs?yes
Applies to2.3 -> master
Fixed tickets#4698 (comment)

The aim of this PR is to split the Serializer component documentation into smaller articles: the encoders and the normalizers will have their own dedicated section.

The encoders documentation won't be necessary for everyone but it is always good to understand how they work. For example, I don't think that a lot of people knows that theXmlEncoder considers keys beginning with@ as attributes.
TheJsonEncoder isn't really complex but it may be useful to know that it is based on the built in methodsjson_encode andjson_decode.

The documentation about normalizers is much more needed as they are a great feature not much documented for now. TheObjectNormalizer (or theGetSetMethodNormalizer for the 2.3 branch) is enough in most of the cases but sometimes people want something even more powerful and could use custom normalizers if they knew more about them.

So please tell me if you like this reorganization and if you see anything to change before I start writing the sections about normalizers and encoders :-)

As a final result, the deserializer uses the ``first_name`` attribute as if
it were ``firstName`` and uses the ``getFirstName`` and ``setFirstName`` methods.

Using Callbacks to Serialize Properties with Object Instances
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this should be moved to other chapters rather than removed

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yes, I plan to move it to the normalizer doc ;-)

@GuilhemNGuilhemNforce-pushed theSERIALIZER branch 2 times, most recently fromda8a235 to2d4ff3bCompareApril 4, 2016 17:36
@GuilhemN
Copy link
ContributorAuthor

I wrote the doc about encoders.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@GuilhemN@stof@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp