Skip to content

Commit

Permalink
Merge pull request #411 from uber/wbond/scope-qualification
Browse files Browse the repository at this point in the history
Update registerProviderFactory to fully qualify Scope class
  • Loading branch information
wbond authored Apr 19, 2022
2 parents 32b816e + 7f15639 commit 0268f2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class OutputSerializer: Serializer {
}
// MARK: - Registration
private func registerProviderFactory(_ componentPath: String, _ factory: @escaping (Scope) -> AnyObject) {
private func registerProviderFactory(_ componentPath: String, _ factory: @escaping (NeedleFoundation.Scope) -> AnyObject) {
__DependencyProviderRegistry.instance.registerDependencyProviderFactory(for: componentPath, factory)
}
Expand Down
2 changes: 1 addition & 1 deletion Sample/MVC/TicTacToe/Sources/NeedleGenerated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private func factoryEmptyDependencyProvider(_ component: NeedleFoundation.Scope)
}

// MARK: - Registration
private func registerProviderFactory(_ componentPath: String, _ factory: @escaping (Scope) -> AnyObject) {
private func registerProviderFactory(_ componentPath: String, _ factory: @escaping (NeedleFoundation.Scope) -> AnyObject) {
__DependencyProviderRegistry.instance.registerDependencyProviderFactory(for: componentPath, factory)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private func factoryEmptyDependencyProvider(_ component: NeedleFoundation.Scope)
}

// MARK: - Registration
private func registerProviderFactory(_ componentPath: String, _ factory: @escaping (Scope) -> AnyObject) {
private func registerProviderFactory(_ componentPath: String, _ factory: @escaping (NeedleFoundation.Scope) -> AnyObject) {
__DependencyProviderRegistry.instance.registerDependencyProviderFactory(for: componentPath, factory)
}

Expand Down

0 comments on commit 0268f2c

Please sign in to comment.