Skip to content

Commit 01af43e

Browse files
authored
Merge pull request #22 from vanWittlaer/21/fix-use-of-ProductGatewayInterface
use ProductGatewayInterface instead of ProductGatewway in two classes
2 parents e38bbe8 + b4feee6 commit 01af43e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Page/CompareProductPageLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Shopware\Core\Content\Product\Aggregate\ProductReview\ProductReviewCollection;
66
use Shopware\Core\Content\Product\Aggregate\ProductReview\ProductReviewEntity;
7-
use Shopware\Core\Content\Product\Cart\ProductGateway;
7+
use Shopware\Core\Content\Product\Cart\ProductGatewayInterface;
88
use Shopware\Core\Content\Product\ProductCollection;
99
use Shopware\Core\Content\Product\SalesChannel\Listing\ProductListingResult;
1010
use Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity;
@@ -33,7 +33,7 @@ class CompareProductPageLoader
3333

3434
private GenericPageLoaderInterface $genericLoader;
3535

36-
private ProductGateway $productGateway;
36+
private ProductGatewayInterface $productGateway;
3737

3838
private EventDispatcherInterface $eventDispatcher;
3939

@@ -42,7 +42,7 @@ class CompareProductPageLoader
4242
private SystemConfigService $systemConfigService;
4343

4444
public function __construct(
45-
ProductGateway $productGateway,
45+
ProductGatewayInterface $productGateway,
4646
GenericPageLoaderInterface $genericLoader,
4747
EventDispatcherInterface $eventDispatcher,
4848
EntityRepositoryInterface $productReviewRepository,

src/Subscriber/FroshCrossSellingProductListingSubscriber.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Frosh\FroshProductCompare\CrossSellingComparable\CrossSellingComparableEntity;
66
use Frosh\FroshProductCompare\Page\CompareProductPageLoader;
7-
use Shopware\Core\Content\Product\Cart\ProductGateway;
7+
use Shopware\Core\Content\Product\Cart\ProductGatewayInterface;
88
use Shopware\Core\Content\Product\Events\ProductCrossSellingCriteriaEvent;
99
use Shopware\Core\Content\Product\Events\ProductCrossSellingIdsCriteriaEvent;
1010
use Shopware\Core\Content\Product\Events\ProductCrossSellingsLoadedEvent;
@@ -22,11 +22,11 @@ class FroshCrossSellingProductListingSubscriber implements EventSubscriberInterf
2222
{
2323
private CompareProductPageLoader $compareProductPageLoader;
2424

25-
private ProductGateway $productGateway;
25+
private ProductGatewayInterface $productGateway;
2626

2727
public function __construct(
2828
CompareProductPageLoader $compareProductPageLoader,
29-
ProductGateway $productGateway
29+
ProductGatewayInterface $productGateway
3030
) {
3131
$this->compareProductPageLoader = $compareProductPageLoader;
3232
$this->productGateway = $productGateway;

0 commit comments

Comments
 (0)