You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im not sure if is this bug or i m just doing things in wrong way.
My problem is this:
/** * @Aop\Before("methodAnnotatedWith(app\Model\Anotations\Resource)") */publicfunctionresource(Aop\JoinPoint\BeforeMethod$beforeMethod) {
$annotations = $this->annotationReader->getMethodAnnotations($beforeMethod->getTargetReflection());
//Throws Err//[Semantical Error] The annotation "@resource" in method presenter::actionDefault() was never imported.// Did you maybe forget to add a "use" statement for this annotation?
}
When i try to get annotation from generated class i get error cause use namespace\to\Resource statement for annotation is missing in generated presenter
Im not sure if is this bug or i m just doing things in wrong way.
My problem is this:
When i try to get annotation from generated class i get error cause
use namespace\to\Resource statement for annotation is missing in generated presenter