36
36
* Account Management service implementation for external API access.
37
37
* Handle various customer account actions.
38
38
*
39
+ * @api
39
40
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
40
41
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
41
42
*/
@@ -48,55 +49,6 @@ class AccountManagementApi extends AccountManagement
48
49
*/
49
50
public const ADMIN_RESOURCE = 'Magento_Customer::manage ' ;
50
51
51
- /**
52
- * @var PsrLogger
53
- */
54
- protected $ logger ;
55
-
56
- /**
57
- * @var StringHelper
58
- */
59
- protected $ stringHelper ;
60
-
61
- /**
62
- * @var DataObjectProcessor
63
- */
64
- protected $ dataProcessor ;
65
-
66
- /**
67
- * @var Registry
68
- */
69
- protected $ registry ;
70
-
71
- /**
72
- * @var CustomerViewHelper
73
- */
74
- protected $ customerViewHelper ;
75
-
76
- /**
77
- * @var DateTime
78
- */
79
- protected $ dateTime ;
80
-
81
- /**
82
- * @var ObjectFactory
83
- */
84
- protected $ objectFactory ;
85
-
86
- /**
87
- * @var ExtensibleDataObjectConverter
88
- */
89
- protected $ extensibleDataObjectConverter ;
90
-
91
- /**
92
- * @var CustomerModel
93
- */
94
- protected $ customerModel ;
95
-
96
- /**
97
- * @var AuthenticationInterface
98
- */
99
- protected $ authentication ;
100
52
/**
101
53
* @var AuthorizationInterface
102
54
*/
@@ -126,7 +78,7 @@ class AccountManagementApi extends AccountManagement
126
78
* @param CustomerModel $customerModel
127
79
* @param ObjectFactory $objectFactory
128
80
* @param ExtensibleDataObjectConverter $extensibleDataObjectConverter
129
- * @param AuthorizationInterface|null $authorization
81
+ * @param AuthorizationInterface $authorization
130
82
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
131
83
*/
132
84
public function __construct (
@@ -153,7 +105,7 @@ public function __construct(
153
105
CustomerModel $ customerModel ,
154
106
ObjectFactory $ objectFactory ,
155
107
ExtensibleDataObjectConverter $ extensibleDataObjectConverter ,
156
- AuthorizationInterface $ authorization = null
108
+ AuthorizationInterface $ authorization
157
109
) {
158
110
$ objectManager = ObjectManager::getInstance ();
159
111
$ this ->authorization = $ authorization ?? $ objectManager ->get (AuthorizationInterface::class);
0 commit comments