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

Improve error message when using a factory with a singleton #2

Open
ZachBray opened this issue Sep 5, 2016 · 0 comments
Open

Improve error message when using a factory with a singleton #2

ZachBray opened this issue Sep 5, 2016 · 0 comments

Comments

@ZachBray
Copy link
Owner

ZachBray commented Sep 5, 2016

EyeOhSee prevents the user from using a factory to construct a singleton.

Factories work by registering arguments in a child container and resolving the target from this container.

We should update the error message to better reflect this restriction.

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