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)")
*/
public function resource(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