Skip to content

Commit 83864e7

Browse files
authored
ENGCOM-4214: Remove unused reference on wishlist ConvertSerializedData controller #21129
2 parents 2f77c8f + 6252325 commit 83864e7

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

app/code/Magento/Wishlist/Controller/Index/Fromcart.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
use Magento\Checkout\Helper\Cart as CartHelper;
1010
use Magento\Checkout\Model\Cart as CheckoutCart;
11-
use Magento\Customer\Model\Session;
1211
use Magento\Framework\App\Action;
1312
use Magento\Framework\Data\Form\FormKey\Validator;
1413
use Magento\Framework\Escaper;
@@ -19,9 +18,11 @@
1918
use Magento\Wishlist\Helper\Data as WishlistHelper;
2019

2120
/**
21+
* Add cart item to wishlist and remove from cart controller.
22+
*
2223
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2324
*/
24-
class Fromcart extends \Magento\Wishlist\Controller\AbstractIndex
25+
class Fromcart extends \Magento\Wishlist\Controller\AbstractIndex implements Action\HttpPostActionInterface
2526
{
2627
/**
2728
* @var WishlistProviderInterface

app/code/Magento/Wishlist/Setup/Patch/Data/ConvertSerializedData.php

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
namespace Magento\Wishlist\Setup\Patch\Data;
87

9-
use Magento\Framework\DB\FieldDataConverterFactory;
108
use Magento\Framework\DB\DataConverter\SerializedToJson;
11-
use Magento\Framework\DB\Select\QueryModifierFactory;
9+
use Magento\Framework\DB\FieldDataConverterFactory;
1210
use Magento\Framework\DB\Query\Generator as QueryGenerator;
13-
use Magento\Framework\App\ResourceConnection;
11+
use Magento\Framework\DB\Select\QueryModifierFactory;
1412
use Magento\Framework\Setup\Patch\DataPatchInterface;
1513
use Magento\Framework\Setup\Patch\PatchVersionInterface;
1614

1715
/**
18-
* Class ConvertSerializedData
19-
* @package Magento\Wishlist\Setup\Patch
16+
* Convert serialized wishlist item data.
2017
*/
2118
class ConvertSerializedData implements DataPatchInterface, PatchVersionInterface
2219
{
@@ -60,37 +57,43 @@ public function __construct(
6057
}
6158

6259
/**
63-
* {@inheritdoc}
60+
* @inheritdoc
6461
*/
6562
public function apply()
6663
{
6764
$this->convertSerializedData();
6865
}
6966

7067
/**
71-
* {@inheritdoc}
68+
* @inheritdoc
7269
*/
7370
public static function getDependencies()
7471
{
7572
return [];
7673
}
7774

7875
/**
79-
* {@inheritdoc}
76+
* @inheritdoc
8077
*/
8178
public static function getVersion()
8279
{
8380
return '2.0.1';
8481
}
8582

8683
/**
87-
* {@inheritdoc}
84+
* @inheritdoc
8885
*/
8986
public function getAliases()
9087
{
9188
return [];
9289
}
93-
90+
91+
/**
92+
* Convert serialized whishlist item data.
93+
*
94+
* @throws \Magento\Framework\DB\FieldDataConversionException
95+
* @throws \Magento\Framework\Exception\LocalizedException
96+
*/
9497
private function convertSerializedData()
9598
{
9699
$connection = $this->moduleDataSetup->getConnection();

0 commit comments

Comments
 (0)