JMSSecurityExtraBundle
JMSSecurityExtraBundle copied to clipboard
Annotations from parents don't taken into account
trafficstars
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.
Sory for the duplicate issue, just realized it #83. It has a slight difference I'm referring to Classes not methods.
+1 2 years and no solution ?
@coelhoricardo i have the same issue:
https://github.com/schmittjoh/JMSSecurityExtraBundle/pull/128 (see the comment)