Skip to content

Commit 729bd42

Browse files
committed
change InstallData to Setup/Patch/Data
1 parent 4f895c2 commit 729bd42

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

Setup/InstallData.php renamed to Setup/Patch/Data/ImpactIntegration.php

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
* @package Impact_Integration
66
* @copyright Copyright (c) 2021 Impact. (https://impact.com)
77
*/
8+
declare(strict_types=1);
89

10+
namespace Impact\Integration\Setup\Patch\Data;
911

10-
namespace Impact\Integration\Setup;
11-
12-
use Magento\Framework\Setup\ModuleContextInterface;
13-
use Magento\Framework\Setup\ModuleDataSetupInterface;
1412
use Magento\Integration\Model\ConfigBasedIntegrationManager;
15-
use Magento\Framework\Setup\InstallDataInterface;
1613

17-
class InstallData implements InstallDataInterface
14+
/**
15+
* This patch will install de Impact Integration
16+
*/
17+
class ImpactIntegration implements \Magento\Framework\Setup\Patch\DataPatchInterface
1818
{
1919
/**
2020
* @var ConfigBasedIntegrationManager
2121
*/
2222

23-
private $integrationManager;
23+
private $integrationManager;
2424

2525
/**
2626
* @param ConfigBasedIntegrationManager $integrationManager
@@ -32,11 +32,26 @@ public function __construct(ConfigBasedIntegrationManager $integrationManager)
3232
}
3333

3434
/**
35-
* {@inheritdoc}
35+
* @inheritdoc
3636
*/
37-
38-
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
37+
public function apply()
3938
{
4039
$this->integrationManager->processIntegrationConfig(['ImpactIntegration']);
4140
}
41+
42+
/**
43+
* @inheritdoc
44+
*/
45+
public function getAliases()
46+
{
47+
return [];
48+
}
49+
50+
/**
51+
* @inheritdoc
52+
*/
53+
public static function getDependencies()
54+
{
55+
return [];
56+
}
4257
}

0 commit comments

Comments
 (0)