I have a filter defined as follows that works in Play 2.5.9:
class Filters(implicit inj: Injector) extends HttpFilters {
def filters = Seq(inject[GzipFilter])
}
However, after upgrading to Play 2.5.12, I get this:
Unexpected exception[InjectException: Type `com.Filters` should either define default no-arg constructor or one constructor marked with javax.inject.Inject annotation.]
Any ideas on the problem?
Thanks.