We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ac0dec commit a6e7989Copy full SHA for a6e7989
README.md
@@ -73,7 +73,7 @@ To illustrate this, here is an example controller:
73
```scala
74
import play.api.mvc._
75
76
-class Sales(saleRepository: SaleRepository) extends Controller with ContentNegotiation {
+class Sales(saleRepository: SaleRepository, cc: ControllerComponents) extends AbstractController(cc) with ContentNegotiation {
77
def negotiate()(implicit req: RequestHeader) = represent[Sale](
78
as(Accepts.Html, views.html.sale(_)),
79
as(Accepts.Json, Json.toJson(_))
0 commit comments