Skip to content

Commit 376ab3f

Browse files
magento2-login-as-customer/issues/26: Static tests fix.
1 parent 8dd176e commit 376ab3f

File tree

4 files changed

+97
-215
lines changed

4 files changed

+97
-215
lines changed

app/code/Magento/LoginAsCustomerWebapi/Model/LoginAsCustomerWebapiCreateCustomerAccessToken.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Magento\Framework\Event\ManagerInterface;
1212
use Magento\Framework\Exception\LocalizedException;
1313
use Magento\Integration\Model\Oauth\TokenFactory;
14-
use Magento\LoginAsCustomer\Model\Config;
14+
use Magento\LoginAsCustomerApi\Api\ConfigInterface;
1515
use Magento\LoginAsCustomerWebapi\Api\LoginAsCustomerWebapiCreateCustomerAccessTokenInterface;
1616

1717
/**
@@ -20,7 +20,7 @@
2020
class LoginAsCustomerWebapiCreateCustomerAccessToken implements LoginAsCustomerWebapiCreateCustomerAccessTokenInterface
2121
{
2222
/**
23-
* @var Config
23+
* @var ConfigInterface
2424
*/
2525
private $config;
2626

@@ -40,13 +40,13 @@ class LoginAsCustomerWebapiCreateCustomerAccessToken implements LoginAsCustomerW
4040
private $tokenFactory;
4141

4242
/**
43-
* @param Config $config
43+
* @param ConfigInterface $config
4444
* @param CustomerRepositoryInterface $customerRepository
4545
* @param ManagerInterface $eventManager
4646
* @param TokenFactory $tokenFactory
4747
*/
4848
public function __construct(
49-
Config $config,
49+
ConfigInterface $config,
5050
CustomerRepositoryInterface $customerRepository,
5151
ManagerInterface $eventManager,
5252
TokenFactory $tokenFactory

app/code/Magento/LoginAsCustomerWebapi/composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"description": "Grants admin token customer account",
44
"require": {
55
"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": "*"
710
},
811
"type": "magento2-module",
912
"license": [

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@
199199
"magento/module-login-as-customer-page-cache": "*",
200200
"magento/module-login-as-customer-sales": "*",
201201
"magento/module-login-as-customer-ui": "*",
202+
"magento/module-login-as-customer-webapi": "*",
202203
"magento/module-media-content": "*",
203204
"magento/module-media-content-api": "*",
204205
"magento/module-media-content-catalog": "*",

0 commit comments

Comments
 (0)