sensio/SensioFrameworkExtraBundle — Issue #83: @Template and @Secure annotations doesn't work together
Author: mshtukin
Created: 2011-12-16 11:34:44+00:00
State: open

There were two annotations in my controller:

/**
* @Template()
* @Secure(roles="ROLE_USER")
*/
and it works in earlier versions of SensioFrameworkExtraBundle. But after last update it generate error:
The "XXX\FrontendBundle\Controller\MyAccountController__CG__7c7efe8008dbaa99b692279f3182b656b7e1e351" class does not look like a controller class (it must be in a "Controller" sub-namespace and the class name must end with "Controller").

Solution is to set full path to template in @Template annotation. But i think it's incorrect behavior of SensioFrameworkExtraBundle