Skip to content

Commit

Permalink
injected definitions copy resolvedDependencyBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyapuchka committed Nov 25, 2015
1 parent 75bbfd3 commit ff4f365
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dip/Dip/Definition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public final class DefinitionOf<T, F>: Definition {
fatalError("You can not change resolveDependencies block after it was set.")
}
self.resolveDependenciesBlock = block
self.injectedDefinition?.resolveDependenciesBlock = { block($0, $1 as! T) }
self.injectedWeakDefinition?.resolveDependenciesBlock = { block($0, $1 as! T) }
return self
}

Expand Down

0 comments on commit ff4f365

Please sign in to comment.