Skip to content
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 Symfony Serializer bridge #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dunglas
Copy link

@dunglas dunglas commented Mar 2, 2015

To use your Encoder with the Symfony Serializer.

*/
public function decode($data, $format, array $context = array())
{
$schema = isset($context['schema']) ? $context['schema'] : null;
Copy link

Choose a reason for hiding this comment

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

Is it preferable to use json_schema, to be compatible with a xml serializer with a schema context option ?

Copy link
Owner

Choose a reason for hiding this comment

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

@dunglas What do you think?

Copy link
Author

Choose a reason for hiding this comment

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

Good idea. I'll update the PR.

Copy link
Author

Choose a reason for hiding this comment

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

Changed.

@dunglas
Copy link
Author

dunglas commented Apr 24, 2015

ping @webmozart

@dunglas
Copy link
Author

dunglas commented Jan 27, 2016

@webmozart any chance to get this PR merged?

@webmozart
Copy link
Owner

Hi @dunglas, thanks for your PR! :) Sorry for not replying any sooner. Do you really think this belongs here and not rather in Symfony's component? This library is a very low-level library, while the serializer is a bit higher-level. I believe that higher-level libraries should contain bridges to support different lower-level libraries, but not the other way around.

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.

None yet

3 participants