mirror of
https://github.com/InsanusMokrassar/TelegramBotApiLibraries.git
synced 2024-12-22 16:47:16 +00:00
fix
This commit is contained in:
parent
53630d4864
commit
1c87f64a6d
@ -20,6 +20,7 @@ import org.koin.core.Koin
|
|||||||
import org.koin.core.module.Module
|
import org.koin.core.module.Module
|
||||||
import org.koin.core.qualifier.named
|
import org.koin.core.qualifier.named
|
||||||
import org.koin.core.scope.Scope
|
import org.koin.core.scope.Scope
|
||||||
|
import org.koin.dsl.binds
|
||||||
|
|
||||||
val Scope.adminsPlugin: AdminsPlugin?
|
val Scope.adminsPlugin: AdminsPlugin?
|
||||||
get() = getOrNull()
|
get() = getOrNull()
|
||||||
@ -90,7 +91,9 @@ class AdminsPlugin : Plugin {
|
|||||||
get(scopeQualifier)
|
get(scopeQualifier)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
single { DefaultAdminsCacheAPI(get(), get(), get()) }
|
single { DefaultAdminsCacheAPI(get(), get(), get()) } binds arrayOf(
|
||||||
|
AdminsCacheAPI::class
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun BehaviourContext.setupBotPlugin(koin: Koin) {
|
override suspend fun BehaviourContext.setupBotPlugin(koin: Koin) {
|
||||||
|
Loading…
Reference in New Issue
Block a user