We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we expect to have annotations in parent clases? Want to avoid repeating code for it.
PARENT: /** * @PreAuthorize("hasRole('ROLE_ADMIN')") */ abstract class BaseAdminController extends Controller { ... } CHILDS: /** * Agency controller. * * @Route("/admin/agency") */ class AgencyController extends BaseAdminController { /** * Lists all Agency entities. * * @Route("/", name="admin_agency") * @Method("GET") * @Template() */ public function indexAction() { .... } }
The indexAction doesn't have the ROLE_ADMIN check.
The text was updated successfully, but these errors were encountered:
Sory for the duplicate issue, just realized it #83. It has a slight difference I'm referring to Classes not methods.
Sorry, something went wrong.
+1 2 years and no solution ?
@coelhoricardo i have the same issue:
#128 (see the comment)
No branches or pull requests
Can we expect to have annotations in parent clases? Want to avoid repeating code for it.
The indexAction doesn't have the ROLE_ADMIN check.
The text was updated successfully, but these errors were encountered: