8000 [Serializer] split off an EncoderInterface and NormalizerInterface from SerializerInte by lsmith77 · Pull Request #2530 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Serializer] split off an EncoderInterface and NormalizerInterface from SerializerInte #2530

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 16 commits into from
Dec 14, 2011
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
abstract class children should also implement dernormalization
  • Loading branch information
lsmith77 committed Dec 11, 2011
commit c3a711d3f21fd4faa4b0ff7bccf27f92cf39ff2b
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
abstract class SerializerAwareNormalizer implements SerializerAwareInterface, NormalizerInterface
abstract class SerializerAwareNormalizer implements SerializerAwareInterface, NormalizerInterface, DenormalizerInterface
Copy link
Member

Choose a reason for hiding this comment

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

this one should only implement SerializerAwareInterface IMO as it only defines method for this one. This would allow using it for a serializer-aware normalizer which is not a denormalizer (and the opposite)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you are right .. fixed.

{
protected $serializer;

Expand Down
0