Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class System {
- let authorizer: Authorizer
- var authorizedUser: User?
- init(with authorizer: Authorizer) {
- self.authorizer = authorizer
- }
- func doSomething(user: User) {
- // ...
- authorizer.authorize(username: aUser.username, password: aUser.password)
- // ...
- }
- }
Add Comment
Please, Sign In to add comment