8000 [RFC] enable PropertyNormalizer by default for Messenger's serializer · Issue #29162 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[RFC] enable PropertyNormalizer by default for Messenger's serializer #29162
Closed
@nicolas-grekas

Description

@nicolas-grekas

Using Messenger with a basic message object, it first didn't work.
I had to add this to my config/services.yaml file:

services:
    Symfony\Component\Serializer\Normalizer\PropertyNormalizer:
        tags: [serializer.normalizer]

It was preceded by some WTF moments because the error felt unrelated.
Did that happen to others? I feel like this should work by default: create a message class and that's enough: it gets through the bus. That wasn't my experience for now.
WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0