Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions genesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2271,10 +2271,10 @@ files:
private let registration: (_ path: [String], _ dependency: AnyObject) -> Void

fileprivate init(
path: [String],
scope: Scope,
registration: @escaping (_ path: [String], _ dependency: AnyObject) -> Void
) {
self.path = path
self.path = scope.path
self.registration = registration
}

Expand Down Expand Up @@ -2312,11 +2312,19 @@ files:
return { componentFactory(bootstrap) }
}

internal func injectComponents(descendingFrom scope: Scope) -> DependencyProviderRegistrationBuilder {
DependencyProviderRegistrationBuilder(path: scope.path) { [weak self] in
internal func injectComponents(
descendingFrom scope: () -> Scope
) -> DependencyProviderRegistrationBuilder {
DependencyProviderRegistrationBuilder(scope: scope()) { [weak self] in
registry.register(path: $0, dependency: $1) { self?.addTeardownBlock($0) }
}
}

internal func injectComponents(
descendingFrom scope: @autoclosure () -> Scope
) -> DependencyProviderRegistrationBuilder {
injectComponents(descendingFrom: scope)
}
}

private extension __DependencyProviderRegistry {
Expand Down