Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protocol LibraryProtocol {}
- class Library: LibraryProtocol {}
- class LibraryProvider {
- let library: LibraryProtocol.Type
- init(_ library: LibraryProtocol.Type) { self.library = library }
- }
- container.register(LibraryProvider.self) { _ in LibraryProvider(Library.self) }
Add Comment
Please, Sign In to add comment