aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-server-ktor/src/main/kotlin/pl
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-02-16 22:59:41 +0100
committerRobert Jaros <rjaros@finn.pl>2019-02-16 22:59:41 +0100
commit7ffd9224fdc542618211648df0b5361abeaf098d (patch)
tree3aaa454319a7ac502b1b1ea712d9f6d776a149d7 /kvision-modules/kvision-server-ktor/src/main/kotlin/pl
parent7120b09bfebb7ab0c562c6b5db7d63a1b9a772d5 (diff)
downloadkvision-7ffd9224fdc542618211648df0b5361abeaf098d.tar.gz
kvision-7ffd9224fdc542618211648df0b5361abeaf098d.tar.bz2
kvision-7ffd9224fdc542618211648df0b5361abeaf098d.zip
Code style fix
Diffstat (limited to 'kvision-modules/kvision-server-ktor/src/main/kotlin/pl')
-rw-r--r--kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt
index e322aec5..4ca27ebd 100644
--- a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt
+++ b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/remote/KVModules.kt
@@ -57,13 +57,13 @@ fun Application.kvisionInit(vararg modules: Module) {
val injector = Guice.createInjector(MainModule(this), *modules)
intercept(ApplicationCallPipeline.Features) {
- call.attributes.put(InjectorKey, injector.createChildInjector(CallModule(call)))
+ call.attributes.put(INJECTOR_KEY, injector.createChildInjector(CallModule(call)))
}
}
-val InjectorKey = AttributeKey<Injector>("injector")
+val INJECTOR_KEY = AttributeKey<Injector>("injector")
-val ApplicationCall.injector: Injector get() = attributes[InjectorKey]
+val ApplicationCall.injector: Injector get() = attributes[INJECTOR_KEY]
class CallModule(private val call: ApplicationCall) : AbstractModule() {
override fun configure() {