Skip to content

Commit

Permalink
Fix qualifier for scope
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Apr 3, 2024
1 parent f3b782c commit fa35198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa35198

Please sign in to comment.