Last active
December 7, 2020 16:04
-
-
Save ronstar/4cffa5bcbd31e2d393397b8357f45a1f to your computer and use it in GitHub Desktop.
Register class with params
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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