17
17
18
18
/**
19
19
* Class GetToken
20
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
20
21
*/
21
22
class GetToken extends AbstractExpress
22
23
{
@@ -44,7 +45,7 @@ class GetToken extends AbstractExpress
44
45
/**
45
46
* @var \Psr\Log\LoggerInterface
46
47
*/
47
- private $ _logger ;
48
+ private $ logger ;
48
49
49
50
/**
50
51
* @param \Magento\Framework\App\Action\Context $context
@@ -68,7 +69,7 @@ public function __construct(
68
69
\Magento \Customer \Model \Url $ customerUrl ,
69
70
\Psr \Log \LoggerInterface $ logger = null
70
71
) {
71
- $ this ->_logger = $ logger ?: ObjectManager::getInstance ()->get (\Psr \Log \LoggerInterface::class);
72
+ $ this ->logger = $ logger ?: ObjectManager::getInstance ()->get (\Psr \Log \LoggerInterface::class);
72
73
parent ::__construct (
73
74
$ context ,
74
75
$ customerSession ,
@@ -79,8 +80,6 @@ public function __construct(
79
80
$ urlHelper ,
80
81
$ customerUrl
81
82
);
82
- $ parameters = ['params ' => [$ this ->_configMethod ]];
83
- $ this ->_config = $ this ->_objectManager ->create ($ this ->_configType , $ parameters );
84
83
}
85
84
86
85
/**
@@ -99,7 +98,7 @@ public function execute()
99
98
$ this ->_initToken ($ token );
100
99
$ controllerResult ->setData (['url ' => $ url ]);
101
100
} catch (LocalizedException $ exception ) {
102
- $ this ->_logger ->critical ($ exception );
101
+ $ this ->logger ->critical ($ exception );
103
102
$ controllerResult ->setData ([
104
103
'message ' => [
105
104
'text ' => $ exception ->getMessage (),
0 commit comments