Skip to content

Commit e62c3b5

Browse files
authored
Fixed a typo in the name of the constant (magento#734)
1 parent 7277461 commit e62c3b5

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

src/Config/Factory/Cache.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ class Cache
2929

3030
const REDIS_BACKEND_CM_CACHE = 'Cm_Cache_Backend_Redis';
3131
const REDIS_BACKEND_REDIS_CACHE = '\Magento\Framework\Cache\Backend\Redis';
32-
const REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE = '\Magento\Framework\Cache\Backend\RemoteSynchronizedCache';
32+
const REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE = '\Magento\Framework\Cache\Backend\RemoteSynchronizedCache';
3333

3434
const AVAILABLE_REDIS_BACKEND = [
3535
self::REDIS_BACKEND_CM_CACHE,
3636
self::REDIS_BACKEND_REDIS_CACHE,
37-
self::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE
37+
self::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE
3838
];
3939

4040
/**
@@ -303,6 +303,6 @@ private function getSynchronizedConfigStructure(string $envCacheBackendModel, ar
303303
private function isSynchronizedConfigStructure(): bool
304304
{
305305
$model = (string)$this->stageConfig->get(DeployInterface::VAR_CACHE_REDIS_BACKEND);
306-
return $model === self::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE;
306+
return $model === self::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE;
307307
}
308308
}

src/Step/Deploy/PreDeploy/CleanRedisCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function execute(): void
7070
continue;
7171
}
7272

73-
$redisConfig = ($backend === CacheConfig::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE)
73+
$redisConfig = ($backend === CacheConfig::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE)
7474
? $cacheConfig['backend_options']['remote_backend_options']
7575
: $cacheConfig['backend_options'];
7676

src/Step/Deploy/PreDeploy/ConfigUpdate/Cache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function execute()
8686
return true;
8787
}
8888

89-
$backendOptions = ($backend === CacheFactory::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE)
89+
$backendOptions = ($backend === CacheFactory::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE)
9090
? $cacheFrontend['backend_options']['remote_backend_options']
9191
: $cacheFrontend['backend_options'];
9292

@@ -123,7 +123,7 @@ private function checkBackendModel(string $backend): void
123123
{
124124
$notAllowedBackend = [
125125
CacheFactory::REDIS_BACKEND_REDIS_CACHE,
126-
CacheFactory::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE
126+
CacheFactory::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE
127127
];
128128

129129
try {

src/Test/Unit/Config/Factory/CacheTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public function getFromRelationshipsDataProvider()
229229
$resultMasterOnlyConnectionSyncCache = [
230230
'frontend' => [
231231
'default' => [
232-
'backend' => addslashes(Cache::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE),
232+
'backend' => addslashes(Cache::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE),
233233
'backend_options' => [
234234
'remote_backend' => addslashes(Cache::REDIS_BACKEND_REDIS_CACHE),
235235
'remote_backend_options' => [
@@ -491,7 +491,7 @@ public function getFromRelationshipsDataProvider()
491491
$redisConfiguration,
492492
[],
493493
false,
494-
Cache::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE,
494+
Cache::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE,
495495
4,
496496
$resultMasterOnlyConnectionSyncCache,
497497
],
@@ -500,7 +500,7 @@ public function getFromRelationshipsDataProvider()
500500
$redisConfiguration,
501501
$redisSlaveConfiguration,
502502
false,
503-
Cache::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE,
503+
Cache::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE,
504504
4,
505505
$resultMasterOnlyConnectionSyncCache,
506506
],
@@ -509,7 +509,7 @@ public function getFromRelationshipsDataProvider()
509509
$redisConfiguration,
510510
[],
511511
true,
512-
Cache::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE,
512+
Cache::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE,
513513
4,
514514
$resultMasterOnlyConnectionSyncCache,
515515
],
@@ -518,7 +518,7 @@ public function getFromRelationshipsDataProvider()
518518
$redisConfiguration,
519519
$redisSlaveConfiguration,
520520
true,
521-
Cache::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE,
521+
Cache::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE,
522522
5,
523523
$resultMasterSlaveConnectionSyncCache,
524524
],
@@ -536,7 +536,7 @@ public function getFromRelationshipsDataProvider()
536536
$redisConfiguration,
537537
$redisSlaveConfiguration,
538538
true,
539-
Cache::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE,
539+
Cache::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE,
540540
5,
541541
$resultMasterSlaveConnectionWithMergedValueSyncCache,
542542
],
@@ -557,7 +557,7 @@ public function getFromRelationshipsDataProvider()
557557
$redisConfiguration,
558558
$redisSlaveConfiguration,
559559
true,
560-
Cache::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE,
560+
Cache::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE,
561561
5,
562562
$resultMasterSlaveConnectionWithDiffHostSyncCache,
563563
],

src/Test/Unit/Step/Deploy/PreDeploy/ConfigUpdate/CacheTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function executeDataProvider(): array
157157
'config' => [
158158
'frontend' => [
159159
'frontName' => [
160-
'backend' => addslashes(CacheFactory::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE),
160+
'backend' => addslashes(CacheFactory::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE),
161161
'backend_options' => [
162162
'remote_backend_options' => [
163163
'server' => 'localhost',
@@ -247,7 +247,7 @@ public function testExecuteMixedBackends()
247247
'backend_options' => ['server' => 'redis.server', 'port' => 6379],
248248
],
249249
'frontName3' => [
250-
'backend' => addslashes(CacheFactory::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE),
250+
'backend' => addslashes(CacheFactory::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE),
251251
'backend_options' => [
252252
'remote_backend_options' => ['server' => 'redis.server', 'port' => 6379],],
253253
],
@@ -283,7 +283,7 @@ public function testExecuteMixedBackends()
283283
'backend_options' => ['server' => 'redis.server', 'port' => 6379],
284284
],
285285
'frontName3' => [
286-
'backend' => addslashes(CacheFactory::REDIS_BACKEND_REMOTE_SYNHRONIZED_CACHE),
286+
'backend' => addslashes(CacheFactory::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE),
287287
'backend_options' => [
288288
'remote_backend_options' => ['server' => 'redis.server', 'port' => 6379],],
289289
],

0 commit comments

Comments
 (0)