Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@gmethvin
Copy link
Member

Fixes #6062, adds reference to macwire and Adam Warski's DI in Scala guide, and removed the "Current application" section which didn't seem that useful

@gmethvin gmethvin added this to the 2.5.3 milestone Apr 24, 2016
@[content](code/injected.sbt)

When you do this, Play will generate a router with a constructor that accepts each of the controllers and included routers from your routes file, in the order they appear in your routes file. The routers constructor will also, as its first argument, accept an [`HttpErrorHandler`](api/scala/play/api/http/HttpErrorHandler.html), which is used to handle parameter binding errors. The primary constructor will also accept a prefix String as the last argument, but an overloaded constructor that defaults this to `"/"` will also be provided.
By default Play will use the [[injected routes generator|JavaRoutingDsl]]. This generates a router with a constructor that accepts each of the controllers and included routers from your routes file, in the order they appear in your routes file. The router's constructor will also, as its first argument, accept an [`HttpErrorHandler`](api/scala/play/api/http/HttpErrorHandler.html), which is used to handle parameter binding errors, and a prefix String as its last argument. An overloaded constructor that defaults this to `"/"` will also be provided.
Copy link
Contributor

@julienrf julienrf Apr 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why link to Java documentation rather than Scala? (I’m referring to the link to JavaRoutingDsl)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that. I meant to link to something else.

@julienrf
Copy link
Contributor

LGTM excepted the comment I left.

@gmethvin gmethvin merged commit a294ae5 into playframework:master Apr 24, 2016
@gmethvin gmethvin deleted the ctdi-docs branch April 24, 2016 09:44
@gmethvin
Copy link
Member Author

2.5.x: aafd680

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

Successfully merging this pull request may close these issues.

3 participants