Skip to content

Instantly share code, notes, and snippets.

@ronstar
Created December 7, 2020 18:19
Show Gist options
  • Save ronstar/4ef1dd8091fda95ec01bf0ff1a434150 to your computer and use it in GitHub Desktop.
Save ronstar/4ef1dd8091fda95ec01bf0ff1a434150 to your computer and use it in GitHub Desktop.
DIC interface
protocol DICProtocol {
func register<Service>(type: Service.Type, factoryClosure: @escaping FactoryClosure)
func resolve<Service>(type: Service.Type) -> Service?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment