mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-07-01 05:47:34 +00:00
13 lines
372 B
Kotlin
13 lines
372 B
Kotlin
|
package dev.inmo.micro_utils.koin
|
||
|
|
||
|
import org.koin.core.definition.Definition
|
||
|
import org.koin.core.module.Module
|
||
|
import org.koin.core.qualifier.StringQualifier
|
||
|
|
||
|
inline fun <reified T : Any> Module.single(
|
||
|
qualifier: String,
|
||
|
createdAtStart: Boolean = false,
|
||
|
noinline definition: Definition<T>
|
||
|
) = single(StringQualifier(qualifier), createdAtStart, definition)
|
||
|
|