6 declare(strict_types=1);
20 private $collectionFactory;
30 private $collectionProcessor;
37 \
Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface $collectionProcessor,
40 $this->collectionProcessor = $collectionProcessor;
41 $this->collectionFactory = $collectionFactory;
51 if (!$this->collection) {
52 $this->collection = $this->collectionFactory->create();
54 return $this->collection;
getCollection(\Magento\Catalog\Model\Category $category)
__construct(\Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface $collectionProcessor, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collectionFactory)