Symfony security annotation on controller class and inherited action method
This is a quick code example on how to extend the Symfony security extension in your bundle so you could have rules on the controller’s class as annotation and also inherit those and merge with the action method annotations.
This class allow you compound the final security expression through all security configurations class and method.
Finally, just use your
@AppBundle\Configuration\Security annotation instead the standard one.