Created
April 15, 2018 16:06
-
-
Save pjwelcome/db84de88e5bc9b5d173aa949d1cb88b7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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