We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See http://knowledge.robotlegs.org/discussions/robotlegs-2/2124-mapping-multiple-interfaces-to-same-singleton-instance
and #136
The text was updated successfully, but these errors were encountered:
Or come to think of it, neatest would probably be:
injector.map(IFoo).toSingleton(Foo); injector.map(IBar).toProviderOf(IFoo);
Sorry, something went wrong.
Spiked
What ya think @darscan ?
Or:
injector.map(IFoo).and(IBar).toSingleton(Foo);
injector.mapAll(IFoo, IBar).toSingleton(Foo);
@peterjoel yeah, I like the first one, but that might be a bit hard to implement.
No branches or pull requests
See http://knowledge.robotlegs.org/discussions/robotlegs-2/2124-mapping-multiple-interfaces-to-same-singleton-instance
and #136
The text was updated successfully, but these errors were encountered: