Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unable to create custom normalizer after deprecation of ObjectNormalizer #48645

Closed
@ThomasTr

Description

@ThomasTr

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions