File tree Expand file tree Collapse file tree 5 files changed +3
-7
lines changed
LoginAsCustomerAdminUi/Plugin/Button
LoginAsCustomerFrontendUi/etc/frontend Expand file tree Collapse file tree 5 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
declare (strict_types=1 );
7
7
8
- namespace Magento \LoginAsCustomerFrontendUi \Model ;
8
+ namespace Magento \LoginAsCustomer \Model ;
9
9
10
10
use Magento \Customer \Model \Session ;
11
11
use Magento \Framework \App \ObjectManager ;
Original file line number Diff line number Diff line change 8
8
namespace Magento \LoginAsCustomerAdminUi \Plugin \Button ;
9
9
10
10
use Magento \Backend \Block \Widget \Button \ButtonList ;
11
- use Magento \Backend \Block \Widget \Button \Toolbar ;
12
11
use Magento \Framework \AuthorizationInterface ;
13
12
use Magento \Framework \Escaper ;
14
13
use Magento \Framework \View \Element \AbstractBlock ;
@@ -62,13 +61,13 @@ public function __construct(
62
61
/**
63
62
* Add Login as Customer button.
64
63
*
65
- * @param \Magento\Backend\Block\Widget\Button\Toolbar $subject
64
+ * @param \Magento\Backend\Block\Widget\Button\ToolbarInterface $subject
66
65
* @param \Magento\Framework\View\Element\AbstractBlock $context
67
66
* @param \Magento\Backend\Block\Widget\Button\ButtonList $buttonList
68
67
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
69
68
*/
70
69
public function beforePushButtons (
71
- Toolbar $ subject ,
70
+ \ Magento \ Backend \ Block \ Widget \ Button \ ToolbarInterface $ subject ,
72
71
AbstractBlock $ context ,
73
72
ButtonList $ buttonList
74
73
): void {
Original file line number Diff line number Diff line change 6
6
*/
7
7
-->
8
8
<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" />
10
9
<type name =" Magento\Customer\CustomerData\SectionPoolInterface" >
11
10
<arguments >
12
11
<argument name =" sectionSourceMap" xsi : type =" array" >
Original file line number Diff line number Diff line change 4
4
"require" : {
5
5
"php" : " ~7.3.0||~7.4.0" ,
6
6
"magento/framework" : " *" ,
7
- "magento/module-customer" : " *" ,
8
7
"magento/module-store" : " *" ,
9
8
"magento/module-login-as-customer-api" : " *"
10
9
},
Original file line number Diff line number Diff line change 5
5
"php" : " ~7.3.0||~7.4.0" ,
6
6
"magento/framework" : " *" ,
7
7
"magento/module-backend" : " *" ,
8
- "magento/module-customer" : " *" ,
9
8
"magento/module-user" : " *" ,
10
9
"magento/module-login-as-customer-api" : " *"
11
10
},
You can’t perform that action at this time.
0 commit comments