Closed as not planned
Description
Description
The following annotation applied at the top of the controller granted access to all controller actions, prior to the deprecation of @Security.
/**
* @Security("is_granted('view', 'PermissionModuleName'))
*/
class SomeController {}
To allow the following, equivalent functionality,
#[IsGranted('view', 'PermissionModuleName')]
class SomeController {}
change IsGrantedAttributeListener->getIsGrantedSubject() method to
return $arguments[$subjectRef] ?? $subjectRef
Example
No response