File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
core/play/src/main/scala/play/api
web/play-filters-helpers/src/main/scala/play/filters/csrf Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import org.apache.pekko.stream.scaladsl.StreamConverters
3232import play .api ._
3333import play .api .http ._
3434import play .api .inject .ApplicationLifecycle
35+ import play .api .inject .Binding
3536import play .api .inject .Module
3637import play .api .libs ._
3738import play .api .mvc ._
@@ -42,7 +43,7 @@ import play.utils.Resources
4243import play .utils .UriEncoding
4344
4445class AssetsModule extends Module {
45- override def bindings (environment : Environment , configuration : Configuration ) = Seq (
46+ override def bindings (environment : Environment , configuration : Configuration ): scala.collection. Seq [ Binding [_]] = Seq (
4647 bind[Assets ].toSelf,
4748 bind[AssetsMetadata ].toProvider[AssetsMetadataProvider ],
4849 bind[AssetsFinder ].toProvider[AssetsFinderProvider ],
Original file line number Diff line number Diff line change 55package play .api .i18n
66
77import play .api .http .HttpConfiguration
8+ import play .api .inject .Binding
89import play .api .inject .Module
910import play .api .Configuration
1011import play .api .Environment
1112
1213class I18nModule extends Module {
13- def bindings (environment : Environment , configuration : Configuration ) = {
14+ def bindings (environment : Environment , configuration : Configuration ): scala.collection. Seq [ Binding [_]] = {
1415 Seq (
1516 bind[Langs ].toProvider[DefaultLangsProvider ],
1617 bind[MessagesApi ].toProvider[DefaultMessagesApiProvider ],
Original file line number Diff line number Diff line change @@ -90,7 +90,10 @@ abstract class Module {
9090class SimpleModule (bindingsFunc : (Environment , Configuration ) => Seq [Binding [_]]) extends Module {
9191 def this (bindings : Binding [_]* ) = this ((_, _) => bindings)
9292
93- final override def bindings (environment : Environment , configuration : Configuration ) =
93+ final override def bindings (
94+ environment : Environment ,
95+ configuration : Configuration
96+ ): scala.collection.Seq [Binding [_]] =
9497 bindingsFunc(environment, configuration)
9598}
9699
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ object CSRF {
319319 * The CSRF module.
320320 */
321321class CSRFModule extends Module {
322- def bindings (environment : Environment , configuration : Configuration ) =
322+ def bindings (environment : Environment , configuration : Configuration ): scala.collection. Seq [ Binding [_]] =
323323 Seq (
324324 bind[play.libs.crypto.CSRFTokenSigner ].to(classOf [play.libs.crypto.DefaultCSRFTokenSigner ]),
325325 bind[CSRFTokenSigner ].toProvider[CSRFTokenSignerProvider ],
You can’t perform that action at this time.
0 commit comments