File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
app/code/Magento/Catalog/Controller/Product Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Catalog \Controller \Product ;
7
7
8
8
use Magento \Catalog \Api \ProductRepositoryInterface ;
9
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
9
10
use Magento \Framework \Data \Form \FormKey \Validator ;
10
11
use Magento \Framework \View \Result \PageFactory ;
11
12
15
16
* @SuppressWarnings(PHPMD.LongVariable)
16
17
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
17
18
*/
18
- abstract class Compare extends \Magento \Framework \App \Action \Action
19
+ abstract class Compare extends \Magento \Framework \App \Action \Action implements HttpGetActionInterface
19
20
{
20
21
/**
21
22
* Customer id
@@ -141,11 +142,13 @@ public function setCustomerId($customerId)
141
142
}
142
143
143
144
/**
144
- * { @inheritdoc}
145
+ * @inheritdoc
145
146
*/
146
147
public function execute ()
147
148
{
148
- return $ this ->_redirect ( ' catalog/product_compare ' );
149
- }
149
+ $ resultRedirect = $ this ->resultRedirectFactory -> create ( );
150
+ $ resultRedirect -> setPath ( ' catalog/product_compare ' );
150
151
152
+ return $ resultRedirect ;
153
+ }
151
154
}
You can’t perform that action at this time.
0 commit comments