Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

"Use" statement for annotation is missing in cache file #41

@AliAmjid

Description

@AliAmjid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions