Skip to content

Instantly share code, notes, and snippets.

@pjwelcome
Created April 15, 2018 16:06
Show Gist options
  • Save pjwelcome/db84de88e5bc9b5d173aa949d1cb88b7 to your computer and use it in GitHub Desktop.
Save pjwelcome/db84de88e5bc9b5d173aa949d1cb88b7 to your computer and use it in GitHub Desktop.
public protocol Resolving {
static func resolve<T>(dependency: T.Type) -> T
static func reset()
}
extension Resolver : Resolving {
public static func resolve<T>(dependency: T.Type) -> T {
return container.resolve(dependency)
}
public static func reset() {
container.reset()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment