Skip to content

Issue with "symfony/serializer" component on a clean Symfony installation #57294

@alessandro-amos

Description

@alessandro-amos

Symfony version(s) affected

7.1, 7.0, 6.4

Description

I have encountered an issue with the "symfony/serializer" component on a clean Symfony installation. After installing the component via Composer, an error is generated when clearing the cache. The error message is "You have requested a non-existent service "serializer.normalizer.object"."

Interestingly, this error does not occur when the "symfony/security-bundle" package is installed.

I am currently working on WSL with Ubuntu and Docker php:8.2-fpm.

How to reproduce

I just installed Symfony using Composer and then the serializer component:

composer create-project symfony/skeleton:"7.1.*" my_project_directory

Followed by:

composer require symfony/serializer

Possible Solution

No response

Additional Context

image

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