File tree Expand file tree Collapse file tree 4 files changed +97
-215
lines changed
app/code/Magento/LoginAsCustomerWebapi Expand file tree Collapse file tree 4 files changed +97
-215
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Framework \Event \ManagerInterface ;
12
12
use Magento \Framework \Exception \LocalizedException ;
13
13
use Magento \Integration \Model \Oauth \TokenFactory ;
14
- use Magento \LoginAsCustomer \ Model \ Config ;
14
+ use Magento \LoginAsCustomerApi \ Api \ ConfigInterface ;
15
15
use Magento \LoginAsCustomerWebapi \Api \LoginAsCustomerWebapiCreateCustomerAccessTokenInterface ;
16
16
17
17
/**
20
20
class LoginAsCustomerWebapiCreateCustomerAccessToken implements LoginAsCustomerWebapiCreateCustomerAccessTokenInterface
21
21
{
22
22
/**
23
- * @var Config
23
+ * @var ConfigInterface
24
24
*/
25
25
private $ config ;
26
26
@@ -40,13 +40,13 @@ class LoginAsCustomerWebapiCreateCustomerAccessToken implements LoginAsCustomerW
40
40
private $ tokenFactory ;
41
41
42
42
/**
43
- * @param Config $config
43
+ * @param ConfigInterface $config
44
44
* @param CustomerRepositoryInterface $customerRepository
45
45
* @param ManagerInterface $eventManager
46
46
* @param TokenFactory $tokenFactory
47
47
*/
48
48
public function __construct (
49
- Config $ config ,
49
+ ConfigInterface $ config ,
50
50
CustomerRepositoryInterface $ customerRepository ,
51
51
ManagerInterface $ eventManager ,
52
52
TokenFactory $ tokenFactory
Original file line number Diff line number Diff line change 3
3
"description" : " Grants admin token customer account" ,
4
4
"require" : {
5
5
"php" : " ~7.1.3||~7.2.0||~7.3.0" ,
6
- "magento/framework" : " *"
6
+ "magento/framework" : " *" ,
7
+ "magento/module-customer" : " *" ,
8
+ "magento/module-integration" : " *" ,
9
+ "magento/module-login-as-customer-api" : " *"
7
10
},
8
11
"type" : " magento2-module" ,
9
12
"license" : [
Original file line number Diff line number Diff line change 199
199
"magento/module-login-as-customer-page-cache" : " *" ,
200
200
"magento/module-login-as-customer-sales" : " *" ,
201
201
"magento/module-login-as-customer-ui" : " *" ,
202
+ "magento/module-login-as-customer-webapi" : " *" ,
202
203
"magento/module-media-content" : " *" ,
203
204
"magento/module-media-content-api" : " *" ,
204
205
"magento/module-media-content-catalog" : " *" ,
You can’t perform that action at this time.
0 commit comments