diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/utils/DI.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/utils/DI.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/utils/DI.kt b/src/main/kotlin/moe/nea/ledger/utils/DI.kt index abd6272..e998c65 100644 --- a/src/main/kotlin/moe/nea/ledger/utils/DI.kt +++ b/src/main/kotlin/moe/nea/ledger/utils/DI.kt @@ -62,4 +62,7 @@ class DI { private val values = mutableMapOf<Pair<Class<*>, *>, Any>() private val providers = mutableMapOf<Class<*>, BaseDIProvider<*, *>>() + init { + registerSingleton(this) + } }
\ No newline at end of file |