package org.webjars.play

import controllers.AssetsMetadata
import play.api.http.HttpErrorHandler
import play.api.{Configuration, Environment}

/**
 * Compile-time DI components
 */
trait WebJarComponents {

  def configuration: Configuration
  def environment: Environment
  def errorHandler: HttpErrorHandler
  def assetsMetadata: AssetsMetadata

  lazy val webJarsUtil = new WebJarsUtil(configuration, environment)

  lazy val webJarAssets = new WebJarAssets(errorHandler, assetsMetadata)

}

package org.webjars.play

import controllers.AssetsMetadata
import play.api.http.HttpErrorHandler
import play.api.{Configuration, Environment}

/**
 * Compile-time DI components
 */
trait WebJarComponents {

  def configuration: Configuration
  def environment: Environment
  def httpErrorHandler: HttpErrorHandler
  def assetsMetadata: AssetsMetadata

  lazy val webJarsUtil = new WebJarsUtil(configuration, environment)

  lazy val webJarAssets = new WebJarAssets(httpErrorHandler, assetsMetadata)

}

Rename error handler method in components trait
Rename error handler method in components trait

The components provided out-of-the-box with Play all use
httpErrorHandler as the name for the method that refers to
a HttpErrorHandler. WebJars-Play should follow the same pattern
in order to avoid confusion, and to allow tools like MacWire
to work properly.
