Skip to content

Commit

Permalink
Use a better name for the logger service
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Harvey committed Oct 15, 2018
1 parent 6c077e2 commit d5b3141
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Director:
rules:
'oauth': 'IanSimpson\OauthServerController'
Injector:
Logger:
OAuthLogger:
factory: 'IanSimpson\LogFactory'
2 changes: 1 addition & 1 deletion code/OAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function __construct()
new \DateInterval('PT1H') // new access tokens will expire after 1 hour
);

$this->logger = Injector::inst()->get('Logger');
$this->logger = Injector::inst()->get('OAuthLogger');

parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/OauthServerControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function setUp()
->disableOriginalConstructor()
->getMock();

Injector::inst()->registerService($this->logger, 'Logger');
Injector::inst()->registerService($this->logger, 'OAuthLogger');
}

public function tearDown()
Expand Down

0 comments on commit d5b3141

Please sign in to comment.