Skip to content
New issue

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

Annotations from parents don't taken into account #120

Open
qcho opened this issue Mar 3, 2013 · 3 comments
Open

Annotations from parents don't taken into account #120

qcho opened this issue Mar 3, 2013 · 3 comments

Comments

@qcho
Copy link

qcho commented Mar 3, 2013

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.

@qcho
Copy link
Author

qcho commented Mar 3, 2013

Sory for the duplicate issue, just realized it #83. It has a slight difference I'm referring to Classes not methods.

@coelhoricardo
Copy link

+1 2 years and no solution ?

@d3vpunk
Copy link

d3vpunk commented Oct 27, 2015

@coelhoricardo i have the same issue:

#128 (see the comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants