Skip to content

Commit a16a71f

Browse files
ENGCOM-4794: Removes usage of classes which don't exist from DB migration scripts. #22446
- Merge Pull Request #22446 from hostep/magento2:removes-unexisting-classes-from-setup-code - Merged commits: 1. f22e16b 2. 9e00ed2
2 parents 3122993 + 9e00ed2 commit a16a71f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

app/code/Magento/Catalog/Setup/CategorySetup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
use Magento\Theme\Model\Theme\Source\Theme;
5454

5555
/**
56+
* Setup category with default entities.
57+
*
5658
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
5759
*/
5860
class CategorySetup extends EavSetup

app/code/Magento/Customer/Setup/Patch/Data/MigrateStoresAllowedCountriesToWebsite.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use Magento\Framework\Setup\Patch\DataPatchInterface;
1414
use Magento\Framework\Setup\Patch\PatchVersionInterface;
1515

16+
/**
17+
* Migrate store allowed countries to website.
18+
*/
1619
class MigrateStoresAllowedCountriesToWebsite implements DataPatchInterface, PatchVersionInterface
1720
{
1821
/**
@@ -47,10 +50,11 @@ public function __construct(
4750
}
4851

4952
/**
50-
* {@inheritdoc}
53+
* @inheritdoc
5154
*/
5255
public function apply()
5356
{
57+
5458
$this->moduleDataSetup->getConnection()->beginTransaction();
5559

5660
try {
@@ -148,7 +152,7 @@ private function mergeAllowedCountries(array $countries, array $newCountries, $i
148152
}
149153

150154
/**
151-
* {@inheritdoc}
155+
* @inheritdoc
152156
*/
153157
public static function getDependencies()
154158
{
@@ -158,15 +162,15 @@ public static function getDependencies()
158162
}
159163

160164
/**
161-
* {@inheritdoc}
165+
* @inheritdoc
162166
*/
163167
public static function getVersion()
164168
{
165169
return '2.0.9';
166170
}
167171

168172
/**
169-
* {@inheritdoc}
173+
* @inheritdoc
170174
*/
171175
public function getAliases()
172176
{

0 commit comments

Comments
 (0)