Created
May 30, 2017 18:08
-
-
Save khlbrg/5e1582e2cb3810040d674d119900ef61 to your computer and use it in GitHub Desktop.
Logger is injected in constructor
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
class User { | |
constructor(logger) { | |
this.logger = logger | |
} | |
} | |
const user = container.get('user') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment