-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle][Serializer] Move SerializerPass to the Serializer #21293
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
88a93f4
to
a328e75
Compare
"symfony/translation": "~2.8|~3.0", | ||
"symfony/templating": "~2.8|~3.0", | ||
"symfony/validator": "~3.2", | ||
"symfony/yaml": "~3.2", | ||
"symfony/property-info": "~2.8|~3.0", | ||
"symfony/property-info": "~3.1", |
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 this change?
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 we change the framework's serializer requirement to 3.3, and the serializer in 3.3 requires this. The build with low deps was failing otherwise:
- Symfony\Bundle\FrameworkBundle\Tests\Functional\SerializerTest::testDeserializeArrayOfObject
Error: Class 'phpDocumentor\Reflection\FileReflector' not found
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.
Well, then it means that the serializer component should have the proper requirement or the proper conflict in place
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.
It should be a conflict because the Serializer doesn't require PropertyInfo.
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.
See #21309
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'll open a PR for that.
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.
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.
reverted thanks to #21309
a328e75
to
9d3d592
Compare
…(chalasr) This PR was merged into the 3.1 branch. Discussion ---------- [Serializer] Add missing conflict for property-info<3.1 | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21293 (comment) | License | MIT | Doc PR | n/a Commits ------- 60a0c4b [Serializer] Add missing conflict for property-info<3.1
…(chalasr) This PR was merged into the 3.1 branch. Discussion ---------- [Serializer] Add missing conflict for property-info<3.1 | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony/symfony#21293 (comment) | License | MIT | Doc PR | n/a Commits ------- 60a0c4b [Serializer] Add missing conflict for property-info<3.1
c6169c3
to
fea6cd4
Compare
@nicolas-grekas Is there any reason for adding this to the 3.x milestone but #21375 to the 3.3 one? They are about fixing the same ticket so if there is something wrong to you here, please tell me :) |
fea6cd4
to
e7e5ac9
Compare
Updated this to make the serializer id and encoder/normalizer tags configurable through the constructor, defaulting to the ones used in the framework. |
e7e5ac9
to
5e54135
Compare
5e54135
to
95cf508
Compare
But, isn't a BC break to add a parent class with a new constructor to the deprecated pass?
I guess it's fine here. |
Do we want to move forward on this for 3.3? It would be nice to have a thought, to know if it's worth working on other relevant passes listed in the ticket using the same approach. |
IMO it makes sense to move them. |
👍 |
Thank you @chalasr. |
…he Serializer (chalasr) This PR was merged into the 3.3-dev branch. Discussion ---------- [FrameworkBundle][Serializer] Move SerializerPass to the Serializer | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Part of #21284 Commits ------- 95cf508 [FrameworkBundle][Serializer] Move SerializerPass to the Serializer
Part of #21284