Skip to content

Commit

Permalink
Makes val lazy to ease Di gods
Browse files Browse the repository at this point in the history
  • Loading branch information
ignasi35 committed Dec 10, 2020
1 parent 899c10a commit ed4897a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/play/src/main/scala/play/api/mvc/Controller.scala
Expand Up @@ -76,7 +76,7 @@ trait BaseControllerHelpers extends ControllerHelpers {
*/
def parse: PlayBodyParsers = controllerComponents.parsers

implicit val defaultFormBinding: FormBinding = parse.formBinding(parse.DefaultMaxTextLength)
implicit lazy val defaultFormBinding: FormBinding = parse.formBinding(parse.DefaultMaxTextLength)

/**
* The default execution context provided by Play. You should use this for non-blocking code only. You can do so by
Expand Down

0 comments on commit ed4897a

Please sign in to comment.