Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b24b47f

Browse files
authored
refactor #12034 [API][Product] Change identifier for shop endpoint from slug to code (GSadee)
This PR was merged into the 1.9-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | based on Sylius/Sylius#11925 | License | MIT Commits ------- 58ce6bd3d4745cb281ed97374f2324fd9e0af66d [API][Product] Change identifier for shop endpoint from slug to code
2 parents 832bf71 + 127934d commit b24b47f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Repository/ProductRepositoryInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ public function findLatestByChannel(ChannelInterface $channel, string $locale, i
4141

4242
public function findOneByChannelAndSlug(ChannelInterface $channel, string $locale, string $slug): ?ProductInterface;
4343

44+
public function findOneByChannelAndCode(ChannelInterface $channel, string $code): ?ProductInterface;
45+
4446
public function findOneByCode(string $code): ?ProductInterface;
4547
}

0 commit comments

Comments
 (0)