Skip to content

Commit

Permalink
FRW-8798 Refactored after AA review
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitriyTsemma committed Aug 5, 2024
1 parent 4d4b2b2 commit ceef96c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function addLocale(ContainerInterface $container): ContainerInterface
*/
protected function setStoreCurrentLocale(string $locale): void
{
/* Required by infrastructure, exists only for BC reasons with DMS mode. */
/* Required by infrastructure, exists only for BC with DMS OFF mode. */
if ($this->getFactory()->getStoreClient()->isDynamicStoreEnabled()) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function getLocaleTransfer(ContainerInterface $container): LocaleTrans
*/
protected function setStoreCurrentLocale(string $localeName): void
{
/* Required by infrastructure, exists only for BC reasons with DMS mode. */
/* Required by infrastructure, exists only for BC with DMS OFF mode. */
if ($this->getFactory()->getStoreClient()->isDynamicStoreEnabled()) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function getLocaleName(?string $storeName = null): string
return $locales[$localeCode];
}
}
/* Required by infrastructure, exists only for BC reasons with DMS mode. */
/* Required by infrastructure, exists only for BC with DMS OFF mode. */
if ($storeName !== null && $this->getFactory()->getStoreClient()->isDynamicStoreEnabled()) {
$storeTransfer = $this->getFactory()->getStoreClient()->getStoreByName($storeName);

Expand Down
2 changes: 1 addition & 1 deletion src/Spryker/Zed/Locale/Business/LocaleBusinessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function createInstaller(): LocaleInstaller
*/
public function getCurrentLocale(): string
{
/* Required by infrastructure, exists only for BC reasons with DMS mode. */
/* Required by infrastructure, exists only for BC with DMS OFF mode. */
if (!$this->getStoreFacade()->isDynamicStoreEnabled()) {
return Store::getInstance()->getCurrentLocale();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Spryker/Zed/Locale/Business/Reader/LocaleReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function getAvailableLocales(): array
*/
protected function getLocaleTransfers(?LocaleCriteriaTransfer $localeCriteriaTransfer = null): array
{
/* Required by infrastructure, exists only for BC reasons with DMS mode. */
/* Required by infrastructure, exists only for BC with DMS OFF mode. */
if (!$this->storeFacade->isDynamicStoreEnabled()) {
$availableLocales = Store::getInstance()->getLocales();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function provide(ContainerInterface $container): ContainerInterface
*/
protected function setStoreCurrentLocale(string $localeName): void
{
/* Required by infrastructure, exists only for BC reasons with DMS mode. */
/* Required by infrastructure, exists only for BC with DMS OFF mode. */
if ($this->getFactory()->getStoreFacade()->isDynamicStoreEnabled()) {
return;
}
Expand Down

0 comments on commit ceef96c

Please sign in to comment.