Skip to content

Commit baf2995

Browse files
AnujNehraAnujNehra
authored andcommitted
ACP2E-1776: Creating customer(-s) via Async REST API ignores group_id
1 parent d08a9f8 commit baf2995

File tree

1 file changed

+3
-51
lines changed

1 file changed

+3
-51
lines changed

app/code/Magento/Customer/Model/AccountManagementApi.php

Lines changed: 3 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* Account Management service implementation for external API access.
3737
* Handle various customer account actions.
3838
*
39+
* @api
3940
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
4041
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
4142
*/
@@ -48,55 +49,6 @@ class AccountManagementApi extends AccountManagement
4849
*/
4950
public const ADMIN_RESOURCE = 'Magento_Customer::manage';
5051

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;
10052
/**
10153
* @var AuthorizationInterface
10254
*/
@@ -126,7 +78,7 @@ class AccountManagementApi extends AccountManagement
12678
* @param CustomerModel $customerModel
12779
* @param ObjectFactory $objectFactory
12880
* @param ExtensibleDataObjectConverter $extensibleDataObjectConverter
129-
* @param AuthorizationInterface|null $authorization
81+
* @param AuthorizationInterface $authorization
13082
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
13183
*/
13284
public function __construct(
@@ -153,7 +105,7 @@ public function __construct(
153105
CustomerModel $customerModel,
154106
ObjectFactory $objectFactory,
155107
ExtensibleDataObjectConverter $extensibleDataObjectConverter,
156-
AuthorizationInterface $authorization = null
108+
AuthorizationInterface $authorization
157109
) {
158110
$objectManager = ObjectManager::getInstance();
159111
$this->authorization = $authorization ?? $objectManager->get(AuthorizationInterface::class);

0 commit comments

Comments
 (0)