While migrating to Play 2.6.0-M3 I am updating to the new AssetsFinder API as suggested in the Migration Guide.
I have updated my component so it is declared:
abstract class Base(context: play.api.ApplicationLoader.Context) extends play.api.BuiltInComponentsFromContext(context) with play.filters.hosts.AllowedHostsComponents with controllers.AssetsComponents with ...
the `...` is some custom component traits.
I am using: "com.softwaremill.macwire" %% "macros" % "2.3.0" % "provided"
I have a controller, that has an argument `assetsFinder: controllers.AssetsFinder` which it passes to twirl views (as suggested in the Migration Guide).
When I compile the project, I get the following error:
C:\dev\github\base-play\src\main\scala\components\Base.scala:54: Found multiple values of type [controllers.AssetsFinder]: [List(assetFinder, assetsMetadata)]
lazy val baseApplicationController = wire[controllers.base.Application]
Both `assetFinder` and `assetsMetadata` are defined on `controllers.AssetsComponents`, with `assetFinder` (which I think should be `assetsFinder` with an 's') declared:
I think that the `assetFinder` declaration should be removed, but I am not sure how other DI implementations would handle this.