From 76bef8e3a32741860e93f9c42c40ecd4a099f262 Mon Sep 17 00:00:00 2001 From: Anton Fedurtsya Date: Wed, 27 Mar 2024 15:31:31 +0200 Subject: [PATCH] OXDEV-7822 Move getCurrentShopId to ContextInterface --- source/Internal/Transition/Utility/BasicContextInterface.php | 5 ----- source/Internal/Transition/Utility/ContextInterface.php | 2 ++ source/Internal/Transition/Utility/services.yaml | 4 ++++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/source/Internal/Transition/Utility/BasicContextInterface.php b/source/Internal/Transition/Utility/BasicContextInterface.php index dce249995c..aa1b43e0c1 100644 --- a/source/Internal/Transition/Utility/BasicContextInterface.php +++ b/source/Internal/Transition/Utility/BasicContextInterface.php @@ -70,11 +70,6 @@ public function getOutPath(): string; */ public function getDefaultShopId(): int; - /** - * @return int - */ - public function getCurrentShopId(): int; - /** * @return array */ diff --git a/source/Internal/Transition/Utility/ContextInterface.php b/source/Internal/Transition/Utility/ContextInterface.php index 38c1fc8ed9..0c4609981c 100644 --- a/source/Internal/Transition/Utility/ContextInterface.php +++ b/source/Internal/Transition/Utility/ContextInterface.php @@ -13,6 +13,8 @@ interface ContextInterface extends BasicContextInterface { + public function getCurrentShopId(): int; + /** * @return string */ diff --git a/source/Internal/Transition/Utility/services.yaml b/source/Internal/Transition/Utility/services.yaml index d8400f55f0..f3c22b078e 100644 --- a/source/Internal/Transition/Utility/services.yaml +++ b/source/Internal/Transition/Utility/services.yaml @@ -5,3 +5,7 @@ services: OxidEsales\EshopCommunity\Internal\Transition\Utility\ContextInterface: class: OxidEsales\EshopCommunity\Internal\Transition\Utility\Context public: true + + OxidEsales\EshopCommunity\Internal\Transition\Utility\BasicContextInterface: + class: OxidEsales\EshopCommunity\Internal\Transition\Utility\Context + public: true \ No newline at end of file