Symfony: 6.1.5
api-platform/core: 3.0.2
Description
Hi !
I've a Compagny entity. I need to give a name to my Get operation but if I do it like this
#[Get(
security: "is_granted('IS_AUTHENTICATED_FULLY')",
name: 'compagny_get',
)]
The name argument is ignored as you can see in the debug:router command

But if i declare my Get operation in ApiResource attribute like this
#[ApiResource(
operations: [
new Get(
security: "is_granted('IS_AUTHENTICATED_FULLY')",
name: 'compagny_get',
)
]
)]

The operation name is correctly overwritten.
Clearing the cache does not change anything
Symfony: 6.1.5
api-platform/core: 3.0.2
Description
Hi !
I've a Compagny entity. I need to give a name to my Get operation but if I do it like this
#[Get( security: "is_granted('IS_AUTHENTICATED_FULLY')", name: 'compagny_get', )]The name argument is ignored as you can see in the debug:router command

But if i declare my Get operation in ApiResource attribute like this
#[ApiResource( operations: [ new Get( security: "is_granted('IS_AUTHENTICATED_FULLY')", name: 'compagny_get', ) ] )]The operation name is correctly overwritten.
Clearing the cache does not change anything