Guest User

Untitled

a guest
Jan 23rd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. protocol LibraryProtocol {}
  2. class Library: LibraryProtocol {}
  3.  
  4. class LibraryProvider {
  5. let library: LibraryProtocol.Type
  6. init(_ library: LibraryProtocol.Type) { self.library = library }
  7. }
  8.  
  9. container.register(LibraryProvider.self) { _ in LibraryProvider(Library.self) }
Add Comment
Please, Sign In to add comment