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

Panic on ambiguous implementations #37

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

jvictorchen
Copy link

Currently, if there're multiple implementations that satisfy the given type, the library will pick the first one silently. This PR addresses that by adding an option PanicOnAmbiguity which, if set to true, will make the program panic when there're more than one implementations available.

jvictorchen and others added 8 commits February 22, 2017 13:49
…decide whether to panic on ambiguous implmementations
Add an option to configure injector to panic if multiple implementations are present for one interface.
Update README files
* Print out more info when panic

* Print out more info when panic on ambiguous implementations
@jvictorchen jvictorchen reopened this Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant