Guest User

Untitled

a guest
Mar 23rd, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. class System {
  2. let authorizer: Authorizer
  3. var authorizedUser: User?
  4.  
  5. init(with authorizer: Authorizer) {
  6. self.authorizer = authorizer
  7. }
  8.  
  9. func doSomething(user: User) {
  10. // ...
  11. authorizer.authorize(username: aUser.username, password: aUser.password)
  12. // ...
  13. }
  14. }
Add Comment
Please, Sign In to add comment