-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Makes val lazy to prevent circular dependency on DI #10591
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
Conversation
|
@Mergifyio backport master |
|
Command
|
|
@Mergifyio backport 2.7.x |
|
Command
|
ennru
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
|
Command
|
|
Command
|
Makes val lazy to prevent circular dependency on DI (bp #10591)
Makes val lazy to prevent circular dependency on DI (bp #10591)
When adding
defaultFormBinding: FormBindingas avalwe introduced a circular dependency on DI for users ofInjectedController(which is discouraged).The problem becomes more apparent because webjars-play provides some tools which use
InjectedController.See https://travis-ci.com/github/playframework/play-samples/jobs/457151496
Note this issue affects both Java and Scala users as long as there's an intermediate piece on the DI cake that uses
InjectedControllerand even if there's not use of forms.This fixes a regression introduced in Play
2.8.6and2.7.8.