Last active
September 9, 2018 19:48
-
-
Save marcinjackowski/f33c834157be62a41d5ab09d42eed748 to your computer and use it in GitHub Desktop.
[Profile] #dependencyInversion
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
final class Profile { | |
private let service = FriendsService() | |
init() { | |
fetch() | |
} | |
private func fetch() { | |
service.fetch() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment