Skip to content

Commit

Permalink
set shop id in legacy context
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Rolland committed Oct 19, 2023
1 parent a2e7341 commit d6098c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Core/Context/ShopContextBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ public function buildLegacyContext(ShopConstraint $shopConstraint): self
$this->contextStateManager->setShopContext(LegacyShop::CONTEXT_SHOP, $shopConstraint->getShopId()->getValue());

Check failure on line 95 in src/Core/Context/ShopContextBuilder.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (8.1)

Class Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.

Check failure on line 95 in src/Core/Context/ShopContextBuilder.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (8.2)

Class Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.
}

$this->contextStateManager->setShop(new LegacyShop($this->shopId));

Check failure on line 98 in src/Core/Context/ShopContextBuilder.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (8.1)

Class Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.

Check failure on line 98 in src/Core/Context/ShopContextBuilder.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (8.2)

Class Shop is forbidden, No legacy calls inside the prestashop bundle. Please create an interface and an adapter if you need to.

return $this;
}

Expand Down

0 comments on commit d6098c0

Please sign in to comment.