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

Can't hint interface using @Type to trigger custom handler #631

Closed
thomask opened this issue Aug 24, 2016 · 2 comments
Closed

Can't hint interface using @Type to trigger custom handler #631

thomask opened this issue Aug 24, 2016 · 2 comments
Milestone

Comments

@thomask
Copy link

thomask commented Aug 24, 2016

I would like to trigger a custom handler using an interface as the type. As per @schmittjoh 's comment I thought I could achieve this by using the @Type annotation to hint the interface. However, the type name is 'overwritten' in the GraphNavigator meaning the custom type cannot be found .

Is it simply not possible to do what I want or am I missing something?

@goetas
Copy link
Collaborator

goetas commented Mar 10, 2017

Currently is not possible to hint interfaces.... only classes or virtual types (not existing classes)

@goetas goetas added this to the v2.0 milestone Mar 10, 2017
@goetas
Copy link
Collaborator

goetas commented Apr 6, 2017

prefer to use explicit anotation, the @var is not created for it. use the @Type annotation

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

2 participants