@@ -33,7 +33,7 @@ class Provider implements TokenProviderInterface
33
33
protected $ _date ;
34
34
35
35
/**
36
- * @var \Magento\Framework\Logger
36
+ * @var \Psr\Log\LoggerInterface
37
37
*/
38
38
protected $ logger ;
39
39
@@ -42,14 +42,14 @@ class Provider implements TokenProviderInterface
42
42
* @param \Magento\Integration\Model\Oauth\TokenFactory $tokenFactory
43
43
* @param \Magento\Integration\Helper\Oauth\Data $dataHelper
44
44
* @param \Magento\Framework\Stdlib\DateTime\DateTime $date
45
- * @param \Magento\Framework\Logger $logger
45
+ * @param \Psr\Log\LoggerInterface $logger
46
46
*/
47
47
public function __construct (
48
48
\Magento \Integration \Model \Oauth \Consumer \Factory $ consumerFactory ,
49
49
\Magento \Integration \Model \Oauth \TokenFactory $ tokenFactory ,
50
50
\Magento \Integration \Helper \Oauth \Data $ dataHelper ,
51
51
\Magento \Framework \Stdlib \DateTime \DateTime $ date ,
52
- \Magento \ Framework \ Logger $ logger
52
+ \Psr \ Log \ LoggerInterface $ logger
53
53
) {
54
54
$ this ->_consumerFactory = $ consumerFactory ;
55
55
$ this ->_tokenFactory = $ tokenFactory ;
@@ -128,7 +128,7 @@ public function getAccessToken($consumer)
128
128
);
129
129
}
130
130
$ accessToken = $ token ->convertToAccess ();
131
- $ this ->logger ->log (
131
+ $ this ->logger ->info (
132
132
'Request token ' . $ token ->getToken () . ' was exchanged to obtain access token for consumer ' . $ consumerId
133
133
);
134
134
return ['oauth_token ' => $ accessToken ->getToken (), 'oauth_token_secret ' => $ accessToken ->getSecret ()];
0 commit comments