44
55use Magento \Framework \App \Request \Http ;
66use Magento \Framework \App \RequestInterface ;
7+ use Magento \Framework \App \State ;
78use Magento \Framework \Data \Form \FormKey as FormKeyModel ;
89use Magento \Framework \UrlFactory ;
910use Magento \Framework \View \Element \AbstractBlock ;
@@ -17,7 +18,8 @@ public function __construct(
1718 private readonly RequestInterface $ request ,
1819 private readonly FormKeyModel $ formKey ,
1920 private readonly IdConvertor $ idConvertor ,
20- private readonly AjaxSignature $ ajaxSignature
21+ private readonly AjaxSignature $ ajaxSignature ,
22+ private readonly State $ appState
2123 ) {
2224 }
2325
@@ -67,12 +69,19 @@ public function getRequestData(): array
6769 ];
6870 }
6971
72+ public function getComponentUpdateData (AbstractBlock $ block ): array
73+ {
74+ return [
75+ 'handles ' => $ this ->getHandles ($ block ),
76+ 'pageHandles ' => $ this ->getPageHandles ($ block ),
77+ 'request ' => $ this ->getRequestData (),
78+ ];
79+ }
80+
7081 public function getSignature (AbstractBlock $ block ): string
7182 {
7283 return $ this ->ajaxSignature ->sign (
73- $ this ->getHandles ($ block ),
74- $ this ->getPageHandles ($ block ),
75- $ this ->getRequestData ()
84+ $ this ->getComponentUpdateData ($ block )
7685 );
7786 }
7887
0 commit comments