Skip to content

Commit

Permalink
OXDEV-7822 Deprecate getCurrentShopId in BasicContextInterface
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Mar 27, 2024
1 parent bb81e72 commit 418e3cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getOutPath(): string;
public function getDefaultShopId(): int;

/**
* @return int
* @deprecated on v7.0.4, Please use the ContextInterface instead of current one
*/
public function getCurrentShopId(): int;

Expand Down
2 changes: 2 additions & 0 deletions source/Internal/Transition/Utility/ContextInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

interface ContextInterface extends BasicContextInterface
{
public function getCurrentShopId(): int;

/**
* @return string
*/
Expand Down
4 changes: 4 additions & 0 deletions source/Internal/Transition/Utility/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 418e3cb

Please sign in to comment.