From 544d0f80a57546250963c7cc836a70ce84a15e7c Mon Sep 17 00:00:00 2001 From: RahatHameed Date: Tue, 9 Jul 2024 11:24:18 +0200 Subject: [PATCH] OXDEV-8215 Moved LanguageWrapper into infrastructure --- src/Shared/Core/services.yaml | 13 ------------- .../{Core => Infrastructure}/LanguageWrapper.php | 2 +- .../LanguageWrapperInterface.php | 2 +- src/Shared/Infrastructure/services.yaml | 13 +++++++++++++ src/Shared/Service/LanguageService.php | 2 +- src/Shared/services.yaml | 2 +- .../LanguageWrapperTest.php | 7 +++++-- tests/Unit/Shared/Service/LanguageServiceTest.php | 5 ++++- 8 files changed, 26 insertions(+), 20 deletions(-) delete mode 100644 src/Shared/Core/services.yaml rename src/Shared/{Core => Infrastructure}/LanguageWrapper.php (89%) rename src/Shared/{Core => Infrastructure}/LanguageWrapperInterface.php (68%) create mode 100644 src/Shared/Infrastructure/services.yaml rename tests/Unit/Shared/{Core => Infrastructure}/LanguageWrapperTest.php (86%) diff --git a/src/Shared/Core/services.yaml b/src/Shared/Core/services.yaml deleted file mode 100644 index 2558516..0000000 --- a/src/Shared/Core/services.yaml +++ /dev/null @@ -1,13 +0,0 @@ -services: - _defaults: - public: false - autowire: true - bind: - OxidEsales\Eshop\Core\Language: '@=service("OxidEsales\\GraphQL\\ConfigurationAccess\\Shared\\Core\\Registry").getLang()' - - OxidEsales\GraphQL\ConfigurationAccess\Shared\Core\Registry: - class: OxidEsales\Eshop\Core\Registry - public: true - - OxidEsales\GraphQL\ConfigurationAccess\Shared\Core\LanguageWrapperInterface: - class: OxidEsales\GraphQL\ConfigurationAccess\Shared\Core\LanguageWrapper diff --git a/src/Shared/Core/LanguageWrapper.php b/src/Shared/Infrastructure/LanguageWrapper.php similarity index 89% rename from src/Shared/Core/LanguageWrapper.php rename to src/Shared/Infrastructure/LanguageWrapper.php index f58f5e9..63a546f 100644 --- a/src/Shared/Core/LanguageWrapper.php +++ b/src/Shared/Infrastructure/LanguageWrapper.php @@ -7,7 +7,7 @@ declare(strict_types=1); -namespace OxidEsales\GraphQL\ConfigurationAccess\Shared\Core; +namespace OxidEsales\GraphQL\ConfigurationAccess\Shared\Infrastructure; use OxidEsales\Eshop\Core\Language; diff --git a/src/Shared/Core/LanguageWrapperInterface.php b/src/Shared/Infrastructure/LanguageWrapperInterface.php similarity index 68% rename from src/Shared/Core/LanguageWrapperInterface.php rename to src/Shared/Infrastructure/LanguageWrapperInterface.php index b4baaa3..551cc58 100644 --- a/src/Shared/Core/LanguageWrapperInterface.php +++ b/src/Shared/Infrastructure/LanguageWrapperInterface.php @@ -1,6 +1,6 @@