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 55 */
66declare (strict_types=1 );
77
8- namespace Magento \LoginAsCustomerFrontendUi \Model ;
8+ namespace Magento \LoginAsCustomer \Model ;
99
1010use Magento \Customer \Model \Session ;
1111use Magento \Framework \App \ObjectManager ;
Original file line number Diff line number Diff line change 88namespace Magento \LoginAsCustomerAdminUi \Plugin \Button ;
99
1010use Magento \Backend \Block \Widget \Button \ButtonList ;
11- use Magento \Backend \Block \Widget \Button \Toolbar ;
1211use Magento \Framework \AuthorizationInterface ;
1312use Magento \Framework \Escaper ;
1413use 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 {
Original file line number Diff line number Diff line change 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" >
Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments