Skip to content

Optional annotation alias via use statement #29

Description

@pmaselkowski

Scenario:

Two annotations with same name registered:

Acme\Yoyodyne\NameAnnotation
Maslosoft\Mangan\NameAnnotation

Solution:

namespace Project\Vendor;

use Acme\Yoyodyne\NameAnnotation as AcmeName;

class MyClass
{
    /**
     * @AcmeName('foo')
     */
    public $conflicted
}

Use UseResolver for this feature.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions