symfony-docs icon indicating copy to clipboard operation
symfony-docs copied to clipboard

[Security] Support union type for `#[CurrentUser]` attribute

Open fabpot opened this issue 5 months ago • 2 comments

Q A
Feature PR symfony/symfony#61204
PR author(s) @VincentLanglet
Merged in 7.4

We created this issue to not forget to document this new feature. We would really appreciate if you can help us with this task. If you are not sure how to do it, please ask us and we will help you.

To fix this issue, please create a PR against the 7.4 branch in the symfony-docs repository.

Thank you! :smiley:

fabpot avatar Jul 25 '25 05:07 fabpot

Hi @javiereguiluz

There is no real doc about the CurrentUser attribute It's just used in https://symfony.com/doc/current/security.html without more information

Is there something to add in the 7.4 doc then ?

VincentLanglet avatar Jul 25 '25 12:07 VincentLanglet

We have this pending to be merged about #[CurrentUser]: #18005

We need more reviews for it 🙏 Thanks!

javiereguiluz avatar Jul 28 '25 07:07 javiereguiluz