From d708dca108dcbfe3d67dfe90c27de9cdb41184a6 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 7 Dec 2024 00:50:33 +0100 Subject: feat: Add SQLITE database entry logging --- src/main/kotlin/moe/nea/ledger/utils/DI.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/kotlin/moe/nea/ledger/utils') diff --git a/src/main/kotlin/moe/nea/ledger/utils/DI.kt b/src/main/kotlin/moe/nea/ledger/utils/DI.kt index 1114127..abd6272 100644 --- a/src/main/kotlin/moe/nea/ledger/utils/DI.kt +++ b/src/main/kotlin/moe/nea/ledger/utils/DI.kt @@ -31,6 +31,8 @@ class DI { return internalProvide(type, element) } + inline fun provide(): T = provide(T::class.java) + fun register(type: Class, provider: BaseDIProvider) { providers[type] = provider } -- cgit