-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I would like to pass an object in the annotation. Like
/**
* @Secure(roles="ROLE_TEST")
* @Secure(roles="EDIT", "company")
* @Route("/company/{id}/edit", name="edit_company")
*/
public function helloAction($company)
{
return array('name' => $company->getName());
}This will take the parameter $company and run $this->authorizationChecker->isGranted($role, $company)
Im happy to make a PR to achieve this but I would like to hear your thoughts first.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels