Skip to content

Commit

Permalink
test(logger): Move logger to the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Koenders committed Sep 12, 2018
1 parent 97ee041 commit 288fc8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/awesomeModule/helloController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import TYPES from '../../constants/types';

@fluentProvide('Music/HelloController').whenTargetNamed('awesomeModule').done()
class HelloController {
@inject(TYPES.Logger) private logger: Logger;
public constructor(
@inject(TYPES.Logger) private logger: Logger
) { }

public hello(name: string) {
this.logger.log('Awesome hello ' + name);
Expand Down

0 comments on commit 288fc8e

Please sign in to comment.