I hereby claim:
- I am gazdagsandor on github.
- I am valhalladixie (https://keybase.io/valhalladixie) on keybase.
- I have a public key ASDXGxprUaQr8915WOGs9tt2uSzCSId4NTuEGF_pT57IVAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import UIKit | |
// Non thread safe DI container simple implementation | |
class Container { | |
var services: [String: Factory] = [:] | |
func register<Service: AnyObject>(service: Service.Type, factory: @escaping () -> Service) { | |
let creator = FactoryImpl<Service>(with: factory, isSingleton: false) |