Skip to content

Fixed the serializer initialization for 2.0 #2258

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

Merged
merged 1 commit into from
Feb 22, 2013
Merged

Conversation

stof
Copy link
Member

@stof stof commented Feb 21, 2013

Q A
Doc fix? yes
New docs? no
Applies to 2.0 only
Fixed tickets symfony/symfony#7145

Symfony 2.0 was using an associative array to associate encoders to formats. So the code was wrong.

This change should then be reverted when merging into the 2.1 branch as 2.1 does not bother about the key. The format support is handled by each encoder (which allows splitting the encoder and the decoder into 2 different classes for the same format for instance, or to use the same encoder for several formats)

weaverryan added a commit that referenced this pull request Feb 22, 2013
Fixed the serializer initialization for 2.0
@weaverryan weaverryan merged commit bc2291b into symfony:2.0 Feb 22, 2013
weaverryan added a commit that referenced this pull request Feb 22, 2013
This reverts commit a38b44e.

This change only applied to 2.0, the original docs were correct for 2.1+
@weaverryan
Copy link
Member

Awesome, thanks @stof! I've reverted it exactly as you said.

Cheers!

@stof stof deleted the patch-1 branch April 4, 2014 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants