Make the HttpEnv extend the SystemEnv trait
This commit is contained in:
parent
3b63327632
commit
ce7ca7ea11
|
@ -1,9 +1,9 @@
|
|||
package lila.http
|
||||
|
||||
import lila.system.SystemEnv
|
||||
import com.typesafe.config._
|
||||
import com.typesafe.config.Config
|
||||
|
||||
final class HttpEnv(config: Config) {
|
||||
final class HttpEnv(c: Config) extends SystemEnv {
|
||||
|
||||
lazy val system = SystemEnv(config)
|
||||
protected val config = c
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package controllers
|
|||
|
||||
import lila.http._
|
||||
|
||||
import com.typesafe.config._
|
||||
import play.api._
|
||||
import play.api.mvc._
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import ai._
|
|||
|
||||
trait SystemEnv {
|
||||
|
||||
val config: Config
|
||||
protected val config: Config
|
||||
|
||||
def server = new Server(
|
||||
repo = gameRepo,
|
||||
|
|
Loading…
Reference in a new issue