File tree Expand file tree Collapse file tree 1 file changed +25
-10
lines changed Expand file tree Collapse file tree 1 file changed +25
-10
lines changed Original file line number Diff line number Diff line change 5
5
* @package Impact_Integration
6
6
* @copyright Copyright (c) 2021 Impact. (https://impact.com)
7
7
*/
8
+ declare (strict_types=1 );
8
9
10
+ namespace Impact \Integration \Setup \Patch \Data ;
9
11
10
- namespace Impact \Integration \Setup ;
11
-
12
- use Magento \Framework \Setup \ModuleContextInterface ;
13
- use Magento \Framework \Setup \ModuleDataSetupInterface ;
14
12
use Magento \Integration \Model \ConfigBasedIntegrationManager ;
15
- use Magento \Framework \Setup \InstallDataInterface ;
16
13
17
- class InstallData implements InstallDataInterface
14
+ /**
15
+ * This patch will install de Impact Integration
16
+ */
17
+ class ImpactIntegration implements \Magento \Framework \Setup \Patch \DataPatchInterface
18
18
{
19
19
/**
20
20
* @var ConfigBasedIntegrationManager
21
21
*/
22
22
23
- private $ integrationManager ;
23
+ private $ integrationManager ;
24
24
25
25
/**
26
26
* @param ConfigBasedIntegrationManager $integrationManager
@@ -32,11 +32,26 @@ public function __construct(ConfigBasedIntegrationManager $integrationManager)
32
32
}
33
33
34
34
/**
35
- * { @inheritdoc}
35
+ * @inheritdoc
36
36
*/
37
-
38
- public function install (ModuleDataSetupInterface $ setup , ModuleContextInterface $ context )
37
+ public function apply ()
39
38
{
40
39
$ this ->integrationManager ->processIntegrationConfig (['ImpactIntegration ' ]);
41
40
}
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
+ }
42
57
}
You can’t perform that action at this time.
0 commit comments