-
Resolves the value that has been associated with
self.key
.Throws
InjectionError<Key, Value>
Declaration
Swift
func resolve(withInjector injector: inout Injected) throws -> Providable
Return Value
The resolved value.
-
Initializes an
InjectedProvider
Declaration
Swift
init( key: Injected.Key, withInjector injector: inout Injected, usingFactory factory: @escaping (inout Injected) throws -> Providable )
Parameters
provider
Provider
that has been provided while injection.factory
A closure, that return the
value
to be injected.