aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/utils/DI.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-08 03:42:07 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-08 03:42:07 +0100
commitef11dd51a61d25bc8722cc844358869b00a5369c (patch)
tree8545e3e1724bb08dba316dd26b0d5edd9918a6e8 /src/main/kotlin/moe/nea/ledger/utils/DI.kt
parentfa72dd4ce107190cda7bc56234fed650f20e3aa9 (diff)
downloadLocalTransactionLedger-ef11dd51a61d25bc8722cc844358869b00a5369c.tar.gz
LocalTransactionLedger-ef11dd51a61d25bc8722cc844358869b00a5369c.tar.bz2
LocalTransactionLedger-ef11dd51a61d25bc8722cc844358869b00a5369c.zip
feat: Add query command
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/utils/DI.kt')
-rw-r--r--src/main/kotlin/moe/nea/ledger/utils/DI.kt3
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