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

Idea: Add ability to inject into PostInject methods instead of just constructors #19

Closed
svermeulen opened this issue Sep 23, 2014 · 1 comment

Comments

@svermeulen
Copy link

In some cases (MonoBehaviours and circular dependencies) we are not able to use constructor injection and therefore must use either property or field injection. What might be nice as another alternative for these cases is to be able to add parameters to the methods that are marked as [PostInject] and have Zenject automatically resolve those dependencies.

@svermeulen svermeulen changed the title Add ability to inject into PostInject methods instead of just constructors Idea: Add ability to inject into PostInject methods instead of just constructors Sep 23, 2014
@svermeulen
Copy link
Author

This was added in 2.0

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