Skip to content

Commit

Permalink
feat(console): bind console to ioc container
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Koenders committed Sep 11, 2018
1 parent 69daf84 commit 02c8175
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Main {
// Bind dependencies that need manual defining
const container = this.iocContext.getContainer();
container.bind<Environment>(TYPES.Environment).toConstantValue(this.environment);
container.bind(TYPES.Console).toConstantValue(global.console);
}

public onListening() {
Expand Down

0 comments on commit 02c8175

Please sign in to comment.