-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[FrameworkBundle] PropertyInfo: register the SerializerExtractor #16947
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
Conversation
dunglas
commented
Dec 10, 2015
| Q | A |
|---|---|
| Bug fix? | no |
| New feature? | yes |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | n/a |
| License | MIT |
| Doc PR | n/a |
|
ping @symfony/deciders |
|
👍 |
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.
This service can be private to.
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.
done
|
Switched from Prophecy to the PHPUnit old mock system. Travis errors look unrelated. |
|
ping @stof |
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.
Why don't we configure this in the serializer.xml file of the FrameworkBundle where the serializer.mapping.class_metadata_factory service is registered?
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.
Because this service should not be added if serializer.mapping.class_metadata_factory doesn't exist.
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.
I understand, but when we configure it in serializer.xml it will only be registered when serializer.mapping.class_metadata_factory would be registered too.
8b17199 to
ac529c7
Compare
b7e564a to
3a936dd
Compare
|
👍 |
|
How do we deal with dependencies now? The Serializer configuration would now require to have the PropertyInfo component in 3.1 or higher. Should we remove the service when an older version of the component is present? |