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

Unable to create custom normalizer after deprecation of ObjectNormalizer #48645

Closed
ThomasTr opened this issue Dec 14, 2022 · 2 comments
Closed

Comments

@ThomasTr
Copy link
Contributor

Symfony version(s) affected

6.2

Description

Using this example: https://symfony.com/doc/current/serializer/custom_normalizer.html leads to deprecation message: "ObjectNormalizer" service alias is deprecated. Replacing them with NormalizerInterface causes circular reference exception.

How to reproduce

Implement custom normalizer as shown in doc here: https://symfony.com/doc/current/serializer/custom_normalizer.html

Possible Solution

Fix doc or revert deprecation of ObjectNormalizer.

Additional Context

No response

@ThomasTr ThomasTr added the Bug label Dec 14, 2022
@ThomasTr ThomasTr changed the title Unable to create custom normalizer after Deprecation of ObjectNormalizer Unable to create custom normalizer after deprecation of ObjectNormalizer Dec 14, 2022
@chalasr
Copy link
Member

chalasr commented Dec 14, 2022

See symfony/symfony-docs#16826 and symfony/maker-bundle#1252.

@chalasr chalasr closed this as completed Dec 14, 2022
@ThomasTr
Copy link
Contributor Author

Sorry, missed that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants