Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional annotation alias via use statement #29

Open
pmaselkowski opened this issue Mar 10, 2016 · 0 comments
Open

Optional annotation alias via use statement #29

pmaselkowski opened this issue Mar 10, 2016 · 0 comments
Assignees

Comments

@pmaselkowski
Copy link
Member

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.

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

No branches or pull requests

1 participant