File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1111 "require" : {
1212 "php" : " ^8.0" ,
1313 "sylius/sylius" : " ^1.12" ,
14- "gally/gally-php-rest-sdk" : " 1.3.0 "
14+ "gally/gally-php-rest-sdk" : " 1.3.1 "
1515 },
1616 "require-dev" : {
1717 "behat/behat" : " ^3.6.1" ,
Original file line number Diff line number Diff line change 11parameters :
22 level : 5
33 reportUnmatchedIgnoredErrors : false
4- checkMissingIterableValueType : false
54 treatPhpDocTypesAsCertain : false
65 paths :
76 - src
Original file line number Diff line number Diff line change 2020use Sylius \Component \Core \Model \ChannelInterface ;
2121use Sylius \Component \Core \Model \ProductInterface ;
2222use Sylius \Component \Core \Model \ProductVariantInterface ;
23+ use Sylius \Component \Core \Model \TaxonInterface ;
2324use Sylius \Component \Core \Repository \ProductRepositoryInterface ;
2425use Sylius \Component \Locale \Model \LocaleInterface ;
2526use Sylius \Component \Product \Model \ProductOptionValueInterface ;
@@ -58,9 +59,14 @@ public function getDocumentsToIndex(
5859 if (!empty ($ documentIdsToReindex )) {
5960 $ products = $ this ->productRepository ->findBy (['id ' => $ documentIdsToReindex ]);
6061 } else {
62+ $ taxon = $ channel ->getMenuTaxon ();
63+ if (null === $ taxon ) {
64+ throw new \LogicException ('No menu taxon define for channel ' . $ channel ->getCode ());
65+ }
66+ /** @var TaxonInterface $taxon */
6167 $ queryBuilder = $ this ->productRepository ->createShopListQueryBuilder (
6268 $ channel ,
63- $ channel -> getMenuTaxon () ,
69+ $ taxon ,
6470 $ locale ->getCode (),
6571 [],
6672 true
You can’t perform that action at this time.
0 commit comments