@@ -111,7 +111,7 @@ protected function disableVirtualReplicasForStore(int $storeId): bool
111
111
$ isStoreScoped = false ;
112
112
113
113
if ($ this ->configChecker ->isSettingAppliedForScopeAndCode (
114
- ConfigHelper::USE_VIRTUAL_REPLICA_ENABLED ,
114
+ ConfigHelper::LEGACY_USE_VIRTUAL_REPLICA_ENABLED ,
115
115
ScopeInterface::SCOPE_STORES ,
116
116
$ storeId )
117
117
) {
@@ -138,7 +138,7 @@ protected function disableVirtualReplicasForStore(int $storeId): bool
138
138
139
139
protected function disableVirtualReplicasForAllStores (): void
140
140
{
141
- $ this ->configChecker ->checkAndApplyAllScopes (ConfigHelper::USE_VIRTUAL_REPLICA_ENABLED , [$ this , 'removeLegacyVirtualReplicaConfig ' ]);
141
+ $ this ->configChecker ->checkAndApplyAllScopes (ConfigHelper::LEGACY_USE_VIRTUAL_REPLICA_ENABLED , [$ this , 'removeLegacyVirtualReplicaConfig ' ]);
142
142
143
143
$ this ->configChecker ->checkAndApplyAllScopes (ConfigHelper::SORTING_INDICES , [$ this , 'disableVirtualReplicaSortConfig ' ]);
144
144
@@ -149,12 +149,12 @@ protected function disableVirtualReplicasForAllStores(): void
149
149
150
150
public function removeLegacyVirtualReplicaConfig (string $ scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT , int $ scopeId = 0 ): void
151
151
{
152
- $ value = $ this ->scopeConfig ->getValue (ConfigHelper::USE_VIRTUAL_REPLICA_ENABLED , $ scope , $ scopeId );
152
+ $ value = $ this ->scopeConfig ->getValue (ConfigHelper::LEGACY_USE_VIRTUAL_REPLICA_ENABLED , $ scope , $ scopeId );
153
153
if (is_null ($ value )) {
154
154
return ;
155
155
}
156
- $ this ->output ->writeln ("<info>Removing legacy configuration " . ConfigHelper::USE_VIRTUAL_REPLICA_ENABLED . " for $ scope scope " . ($ scope != ScopeConfigInterface::SCOPE_TYPE_DEFAULT ? " (ID= $ scopeId) " : "" ) . "</info> " );
157
- $ this ->configWriter ->delete (ConfigHelper::USE_VIRTUAL_REPLICA_ENABLED , $ scope , $ scopeId );
156
+ $ this ->output ->writeln ("<info>Removing legacy configuration " . ConfigHelper::LEGACY_USE_VIRTUAL_REPLICA_ENABLED . " for $ scope scope " . ($ scope != ScopeConfigInterface::SCOPE_TYPE_DEFAULT ? " (ID= $ scopeId) " : "" ) . "</info> " );
157
+ $ this ->configWriter ->delete (ConfigHelper::LEGACY_USE_VIRTUAL_REPLICA_ENABLED , $ scope , $ scopeId );
158
158
}
159
159
160
160
public function disableVirtualReplicaSortConfig (string $ scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT , int $ scopeId = 0 ): void
0 commit comments