|
9 | 9 | use Meta\BusinessExtension\Logger\Logger;
|
10 | 10 | use Magento\Store\Model\StoreManagerInterface;
|
11 | 11 | use Meta\BusinessExtension\Helper\FBEHelper;
|
| 12 | +use Magento\Framework\DB\Adapter\AdapterInterface; |
12 | 13 |
|
13 | 14 | class UpdateConfigurations implements DataPatchInterface
|
14 | 15 | {
|
@@ -47,6 +48,7 @@ class UpdateConfigurations implements DataPatchInterface
|
47 | 48 | * @param SystemConfig $config
|
48 | 49 | * @param StoreManagerInterface $storeManager
|
49 | 50 | * @param Logger $logger
|
| 51 | + * @param FBEHelper $FBEHelper |
50 | 52 | */
|
51 | 53 | public function __construct(
|
52 | 54 | ModuleDataSetupInterface $moduleDataSetup,
|
@@ -117,10 +119,10 @@ public function revert(): void
|
117 | 119 | /**
|
118 | 120 | * Migrate configuration from old table to core_config_data
|
119 | 121 | *
|
120 |
| - * @param $connection |
| 122 | + * @param AdapterInterface $connection |
121 | 123 | * @return void
|
122 | 124 | */
|
123 |
| - private function migrateOldConfigs($connection): void |
| 125 | + private function migrateOldConfigs(AdapterInterface $connection): void |
124 | 126 | {
|
125 | 127 | $facebookConfig = $connection->getTableName(self::OLD_CONFIG_TABLE_NAME);
|
126 | 128 | if ($facebookConfig) {
|
@@ -154,13 +156,13 @@ private function migrateOldConfigs($connection): void
|
154 | 156 | /**
|
155 | 157 | * Remove configurations from old table
|
156 | 158 | *
|
157 |
| - * @param $connection |
| 159 | + * @param AdapterInterface $connection |
158 | 160 | * @return void
|
159 | 161 | */
|
160 |
| - private function deleteOldConfigs($connection): void |
| 162 | + private function deleteOldConfigs(AdapterInterface $connection): void |
161 | 163 | {
|
162 | 164 | $facebookConfig = $connection->getTableName(self::OLD_CONFIG_TABLE_NAME);
|
163 |
| - if($facebookConfig) { |
| 165 | + if ($facebookConfig) { |
164 | 166 | try {
|
165 | 167 | $connection->delete($facebookConfig, "config_key NOT LIKE 'permanent%'");
|
166 | 168 | } catch (\Exception $e) {
|
|
0 commit comments