Make the HttpEnv extend the SystemEnv trait

This commit is contained in:
Thibault Duplessis 2012-03-15 23:03:54 +01:00
parent 3b63327632
commit ce7ca7ea11
3 changed files with 4 additions and 5 deletions

View file

@ -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
}

View file

@ -2,7 +2,6 @@ package controllers
import lila.http._
import com.typesafe.config._
import play.api._
import play.api.mvc._

View file

@ -9,7 +9,7 @@ import ai._
trait SystemEnv {
val config: Config
protected val config: Config
def server = new Server(
repo = gameRepo,