From 98f9aa3a69345f7568416f0f7f635336c99f88c6 Mon Sep 17 00:00:00 2001 From: Alexis Hernandez Date: Sat, 10 Mar 2018 22:10:43 -0600 Subject: [PATCH] server: Add ConfigModule --- .../app/com/xsn/explorer/modules/ConfigModule.scala | 11 +++++++++++ server/conf/application.conf | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 server/app/com/xsn/explorer/modules/ConfigModule.scala diff --git a/server/app/com/xsn/explorer/modules/ConfigModule.scala b/server/app/com/xsn/explorer/modules/ConfigModule.scala new file mode 100644 index 0000000..0bac700 --- /dev/null +++ b/server/app/com/xsn/explorer/modules/ConfigModule.scala @@ -0,0 +1,11 @@ +package com.xsn.explorer.modules + +import com.google.inject.AbstractModule +import com.xsn.explorer.config.{PlayRPCConfig, RPCConfig} + +class ConfigModule extends AbstractModule { + + override def configure(): Unit = { + bind(classOf[RPCConfig]).to(classOf[PlayRPCConfig]) + } +} diff --git a/server/conf/application.conf b/server/conf/application.conf index 3f11714..a45d5b6 100644 --- a/server/conf/application.conf +++ b/server/conf/application.conf @@ -15,3 +15,5 @@ rpc { username = ${?XSN_RPC_USERNAME} password = ${?XSN_RPC_PASSWORD} } + +play.modules.enabled += "com.xsn.explorer.modules.ConfigModule"