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

Dependency injection in play2-auth #152

Closed
ziguane opened this issue Aug 25, 2015 · 1 comment
Closed

Dependency injection in play2-auth #152

ziguane opened this issue Aug 25, 2015 · 1 comment

Comments

@ziguane
Copy link

ziguane commented Aug 25, 2015

Hi all !
Beginner question...

Play 2.4 natively supports the dependency injection (DI)?
What are the best practices for play2-auth on the use of DI?
Are there examples?

Thanks in advance

@gakuzzzz
Copy link
Member

Hi,

However there are no best practices of DI :(
We want to provide a way that play2-auth users can select runtime DI or compile-time DI freely.
But Play2 team does not support these system for third party libraries...

In my personal opinion, I recommend compile-time DI if you don't need to control object life cycle.

best,

@gakuzzzz gakuzzzz closed this as completed Oct 6, 2015
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

No branches or pull requests

2 participants