-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: master
Are you sure you want to change the base?
Conversation
*/ | ||
public function decode($data, $format, array $context = array()) | ||
{ | ||
$schema = isset($context['schema']) ? $context['schema'] : null; |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed.
ping @webmozart |
@webmozart any chance to get this PR merged? |
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. |
To use your Encoder with the Symfony Serializer.