Skip to content

Commit 6913f72

Browse files
committed
Add ProductRepositoryInterface to ProductRepository
Update ProductRepository to implement ProductRepositoryInterface for proper type compatibility with B2B Kit 3.0.
1 parent 4b890ef commit 6913f72

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sylius/b2b-kit/3.0/src/Repository/ProductRepository.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ class ProductRepository extends BaseProductRepository
1818

1919
public function __construct(
2020
EntityManagerInterface $entityManager,
21-
ClassMetadata $class,
21+
ClassMetadata $classMetadata,
2222
protected B2BKitProductVisibilityFilteringCheckerInterface $productVisibilityFilteringChecker,
2323
protected CustomerContextInterface $customerContext,
24-
) {
25-
parent::__construct($entityManager, $class);
24+
)
25+
{
26+
parent::__construct($entityManager, $classMetadata);
2627
}
2728

28-
public function createQueryBuilder($alias, $indexBy = null): QueryBuilder
29+
public function createQueryBuilder(string $alias, string $indexBy = null): QueryBuilder
2930
{
3031
return $this->createFilteredQueryBuilder(
3132
parent::createQueryBuilder($alias, $indexBy),

0 commit comments

Comments
 (0)