Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:AndreyZarembo/EasyDi into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dvi committed May 13, 2019
2 parents 5c3e48c + acb50e3 commit 8f3b319
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Sources/EasyDi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,10 @@ open class Assembly: AssemblyInternal {
into initClosure: @autoclosure @escaping () -> ObjectType,
inject injectClosure: ObjectInjectClosure<ObjectType>? = nil ) {

let _: ObjectType = self.define(
key: key,
definitionKey: definitionKey,
scope: scope,
init: initClosure,
inject: injectClosure
)
let _: ObjectType = define(key: key, definitionKey: definitionKey, scope: scope) { (definition:Definition<ObjectType>) in
definition.initClosure = initClosure
definition.injectClosure = injectClosure
}
}

/// This method defines object, which will be initialized and injected by assembly.
Expand Down

0 comments on commit 8f3b319

Please sign in to comment.