Skip to content

Commit

Permalink
magento2-login-as-customer/issues/26: Static tests fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
engcom-Foxtrot committed Apr 30, 2020
1 parent 8dd176e commit 376ab3f
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 215 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Magento\Framework\Event\ManagerInterface;
use Magento\Framework\Exception\LocalizedException;
use Magento\Integration\Model\Oauth\TokenFactory;
use Magento\LoginAsCustomer\Model\Config;
use Magento\LoginAsCustomerApi\Api\ConfigInterface;
use Magento\LoginAsCustomerWebapi\Api\LoginAsCustomerWebapiCreateCustomerAccessTokenInterface;

/**
Expand All @@ -20,7 +20,7 @@
class LoginAsCustomerWebapiCreateCustomerAccessToken implements LoginAsCustomerWebapiCreateCustomerAccessTokenInterface
{
/**
* @var Config
* @var ConfigInterface
*/
private $config;

Expand All @@ -40,13 +40,13 @@ class LoginAsCustomerWebapiCreateCustomerAccessToken implements LoginAsCustomerW
private $tokenFactory;

/**
* @param Config $config
* @param ConfigInterface $config
* @param CustomerRepositoryInterface $customerRepository
* @param ManagerInterface $eventManager
* @param TokenFactory $tokenFactory
*/
public function __construct(
Config $config,
ConfigInterface $config,
CustomerRepositoryInterface $customerRepository,
ManagerInterface $eventManager,
TokenFactory $tokenFactory
Expand Down
5 changes: 4 additions & 1 deletion app/code/Magento/LoginAsCustomerWebapi/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"description": "Grants admin token customer account",
"require": {
"php": "~7.1.3||~7.2.0||~7.3.0",
"magento/framework": "*"
"magento/framework": "*",
"magento/module-customer": "*",
"magento/module-integration": "*",
"magento/module-login-as-customer-api": "*"
},
"type": "magento2-module",
"license": [
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
"magento/module-login-as-customer-page-cache": "*",
"magento/module-login-as-customer-sales": "*",
"magento/module-login-as-customer-ui": "*",
"magento/module-login-as-customer-webapi": "*",
"magento/module-media-content": "*",
"magento/module-media-content-api": "*",
"magento/module-media-content-catalog": "*",
Expand Down
Loading

0 comments on commit 376ab3f

Please sign in to comment.