Skip to content

Commit 00f5d46

Browse files
committed
magento/magento2-login-as-customer#144: "Login as Customer" functionality should be enabled by default.
1 parent 201b67b commit 00f5d46

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

app/code/Magento/LoginAsCustomerFrontendUi/Model/AuthenticateCustomerBySecret.php renamed to app/code/Magento/LoginAsCustomer/Model/AuthenticateCustomerBySecret.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace Magento\LoginAsCustomerFrontendUi\Model;
8+
namespace Magento\LoginAsCustomer\Model;
99

1010
use Magento\Customer\Model\Session;
1111
use Magento\Framework\App\ObjectManager;

app/code/Magento/LoginAsCustomerAdminUi/Plugin/Button/ToolbarPlugin.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace Magento\LoginAsCustomerAdminUi\Plugin\Button;
99

1010
use Magento\Backend\Block\Widget\Button\ButtonList;
11-
use Magento\Backend\Block\Widget\Button\Toolbar;
1211
use Magento\Framework\AuthorizationInterface;
1312
use Magento\Framework\Escaper;
1413
use Magento\Framework\View\Element\AbstractBlock;
@@ -62,13 +61,13 @@ public function __construct(
6261
/**
6362
* Add Login as Customer button.
6463
*
65-
* @param \Magento\Backend\Block\Widget\Button\Toolbar $subject
64+
* @param \Magento\Backend\Block\Widget\Button\ToolbarInterface $subject
6665
* @param \Magento\Framework\View\Element\AbstractBlock $context
6766
* @param \Magento\Backend\Block\Widget\Button\ButtonList $buttonList
6867
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
6968
*/
7069
public function beforePushButtons(
71-
Toolbar $subject,
70+
\Magento\Backend\Block\Widget\Button\ToolbarInterface $subject,
7271
AbstractBlock $context,
7372
ButtonList $buttonList
7473
): void {

app/code/Magento/LoginAsCustomerFrontendUi/etc/frontend/di.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
9-
<preference for="Magento\LoginAsCustomerApi\Api\AuthenticateCustomerBySecretInterface" type="Magento\LoginAsCustomerFrontendUi\Model\AuthenticateCustomerBySecret"/>
109
<type name="Magento\Customer\CustomerData\SectionPoolInterface">
1110
<arguments>
1211
<argument name="sectionSourceMap" xsi:type="array">

app/code/Magento/LoginAsCustomerPageCache/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"require": {
55
"php": "~7.3.0||~7.4.0",
66
"magento/framework": "*",
7-
"magento/module-customer": "*",
87
"magento/module-store": "*",
98
"magento/module-login-as-customer-api": "*"
109
},

app/code/Magento/LoginAsCustomerSales/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"php": "~7.3.0||~7.4.0",
66
"magento/framework": "*",
77
"magento/module-backend": "*",
8-
"magento/module-customer": "*",
98
"magento/module-user": "*",
109
"magento/module-login-as-customer-api": "*"
1110
},

0 commit comments

Comments
 (0)