Skip to content

[HttpKernel] Document the #[Serialize] attribute for controllers#22009

Open
lacatoire wants to merge 1 commit intosymfony:8.1from
lacatoire:docs/serialize-attribute
Open

[HttpKernel] Document the #[Serialize] attribute for controllers#22009
lacatoire wants to merge 1 commit intosymfony:8.1from
lacatoire:docs/serialize-attribute

Conversation

@lacatoire
Copy link
Contributor

Fixes #21998

Documents the new #[Serialize] attribute introduced in Symfony 8.1 (symfony/symfony#49518) that allows controllers to return plain objects or arrays which are automatically serialized based on the request format.

  • Documents the attribute parameters: code, headers, context
  • Adds the attribute to the reference attributes list

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants