Skip to content

Commit 77cddcf

Browse files
committed
magento2-login-as-customer/issues/104: Global refactoring
- Builds fixes
1 parent 73335cd commit 77cddcf

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

app/code/Magento/LoginAsCustomer/Model/ResourceModel/GetAuthenticationDataBySecret.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Magento\Framework\Exception\LocalizedException;
1313
use Magento\LoginAsCustomerApi\Api\ConfigInterface;
1414
use Magento\LoginAsCustomerApi\Api\Data\AuthenticationDataInterface;
15-
use Magento\LoginAsCustomerApi\Api\Data\AuthenticationDataInterfaceFactor;
15+
use Magento\LoginAsCustomerApi\Api\Data\AuthenticationDataInterfaceFactory;
1616
use Magento\LoginAsCustomerApi\Api\GetAuthenticationDataBySecretInterface;
1717

1818
/**

app/code/Magento/LoginAsCustomerApi/Api/Data/AuthenticationDataInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ public function getAdminId(): int;
3333
/**
3434
* Get extension attributes
3535
*
36-
* @return AuthenticationDataExtensionInterface|null
36+
* Fully qualified namespaces is needed for proper work of ccode generation
37+
*
38+
* @return \Magento\LoginAsCustomerApi\Api\Data\AuthenticationDataExtensionInterface|null
3739
*/
3840
public function getExtensionAttributes(): ?AuthenticationDataExtensionInterface;
3941
}

app/code/Magento/LoginAsCustomerUi/Controller/Login/Index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77

88
namespace Magento\LoginAsCustomerUi\Controller\Login;
99

10+
use Magento\Customer\Api\CustomerRepositoryInterface;
1011
use Magento\Framework\App\RequestInterface;
1112
use Magento\Framework\Controller\Result\Redirect;
1213
use Magento\Framework\Controller\ResultFactory;
1314
use Magento\Framework\Controller\ResultInterface;
14-
use Magento\Customer\Api\CustomerRepositoryInterface;
1515
use Magento\Framework\Exception\LocalizedException;
1616
use Magento\Framework\Exception\NoSuchEntityException;
1717
use Magento\Framework\App\Action\HttpGetActionInterface;
1818
use Magento\Framework\Message\ManagerInterface;
19-
use Psr\Log\LoggerInterface;
2019
use Magento\LoginAsCustomerApi\Api\GetAuthenticationDataBySecretInterface;
2120
use Magento\LoginAsCustomerApi\Api\AuthenticateCustomerInterface;
2221
use Magento\LoginAsCustomerApi\Api\DeleteAuthenticationDataBySecretInterface;
22+
use Psr\Log\LoggerInterface;
2323

2424
/**
2525
* Login As Customer storefront login action

0 commit comments

Comments
 (0)