-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Transformer use Symfony Serializer #1522
Transformer use Symfony Serializer #1522
Conversation
Adding a mandatory param to a constructor is a BC break. Here I'm not sure it's worth it to provide a BC PR, it might be easier to target directly 4.x |
I think it might be nice to have this branch for testing purposes on real apps that are actually using 3.x, but the real PR should target 4.x |
I guess just add the serializer as optional, and if it's not passed get from the container, it's fine |
Do you think it's too much for a minor? |
You dont have the container either in this class |
545ffbe
to
dd85997
Compare
For the last issue, should i just suppress it? if i don't it just complains somewhere else in the Denormalizer |
The interface ContextAwareDenormalizerInterface is deprecated since Symfony 6.1 Since like it will be added directly to https://github.com/symfony/Serializer/blob/6.1/Normalizer/DenormalizerInterface.php#L59 So I would recommend to not use the interface. |
especially this one i don't know how to fix:
|
For
You need to add phpdoc. For
For
I think we have to make the serializerAwareInterface generic in Symfony |
@Hanmac there is a Dont you think you should both implement DenormalizerAwareInterface and SerializerAwareInterface ? |
hm i was using ArrayDenormalizer as inspiration, seems it changed after 4.4 for some reason |
hm where does it want me to do the psalm thing? |
I would say it's because you're using |
Could you please rebase your PR and fix merge conflicts? |
2b3975c
to
ba3e240
Compare
Could you please rebase your PR and fix merge conflicts? |
147cc7e
to
e3de116
Compare
tests are broken, but not by me |
What do you mean ? Tests are green |
Just a linter error to fix |
also happy anniversary for this PR 🥳 |
Can you update the |
i'm not very good at writing such change logs like do we need to add the other deprecations too? |
It would be something like
|
Thanks ! Since I go in vacations at the end of the week, I prefer to delay the release. |
Subject
This makes the Transformer use Symfony Serializer to normalize/denormalize the Content Array.
Under 4.4 Symfony i had the following restrictions:
I will add more Testcases soon with doing a functional test using the Symfony Kernel.
I am targeting this branch, because i don't know if that could count as BC or not.
Closes #1503.
Changelog