From fa35198ba1db006bc9eb0452e82dc06632351465 Mon Sep 17 00:00:00 2001 From: Arnaud Giuliani Date: Wed, 3 Apr 2024 10:17:51 +0200 Subject: [PATCH] Fix qualifier for scope --- .../commonMain/kotlin/org/koin/core/qualifier/TypeQualifier.kt | 2 +- .../commonMain/kotlin/org/koin/core/registry/ScopeRegistry.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/core/koin-core/src/commonMain/kotlin/org/koin/core/qualifier/TypeQualifier.kt b/projects/core/koin-core/src/commonMain/kotlin/org/koin/core/qualifier/TypeQualifier.kt index 197e2ee7f..7d58b68e9 100644 --- a/projects/core/koin-core/src/commonMain/kotlin/org/koin/core/qualifier/TypeQualifier.kt +++ b/projects/core/koin-core/src/commonMain/kotlin/org/koin/core/qualifier/TypeQualifier.kt @@ -22,7 +22,7 @@ class TypeQualifier(val type: KClass<*>) : Qualifier { override val value: QualifierValue = type.getFullName() override fun toString(): String { - return "q:'$value'" + return value } override fun equals(other: Any?): Boolean { diff --git a/projects/core/koin-core/src/commonMain/kotlin/org/koin/core/registry/ScopeRegistry.kt b/projects/core/koin-core/src/commonMain/kotlin/org/koin/core/registry/ScopeRegistry.kt index ede78c2f1..dbee5597f 100644 --- a/projects/core/koin-core/src/commonMain/kotlin/org/koin/core/registry/ScopeRegistry.kt +++ b/projects/core/koin-core/src/commonMain/kotlin/org/koin/core/registry/ScopeRegistry.kt @@ -55,7 +55,7 @@ class ScopeRegistry(private val _koin: Koin) { @PublishedApi internal fun createScope(scopeId: ScopeID, qualifier: Qualifier, source: Any? = null): Scope { - _koin.logger.debug("| (+) Scope - id:'$scopeId' q:$qualifier") + _koin.logger.debug("| (+) Scope - id:'$scopeId' q:'$qualifier'") if (!_scopeDefinitions.contains(qualifier)) { _koin.logger.debug("| Scope '$qualifier' not defined. Creating it ...") _scopeDefinitions.add(qualifier)