Skip to content

Instantly share code, notes, and snippets.

@ronstar
Last active December 7, 2020 16:04
Show Gist options
  • Save ronstar/4cffa5bcbd31e2d393397b8357f45a1f to your computer and use it in GitHub Desktop.
Save ronstar/4cffa5bcbd31e2d393397b8357f45a1f to your computer and use it in GitHub Desktop.
Register class with params
dic.register(type: ServiceThreeProtocol.self) { (dic) -> AnyObject in
return ServiceThree(serviceOne: dic.resolve(type: ServiceOneProtocol.self)!,
paramOne: true,
paramTwo: Data())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment