Commit 32d4d3cd by lmf

修复bug

parent e329d6fa
......@@ -16,6 +16,7 @@ use Magento\Checkout\Model\Session as CheckoutSession;
use Magento\Framework\DataObject\IdentityInterface;
use Magento\Framework\Module\Manager;
use Magento\Framework\View\Element\AbstractBlock;
use Magento\Reports\Model\ResourceModel\Product\CollectionFactory;
/**
* Catalog product related items block
......@@ -26,6 +27,13 @@ use Magento\Framework\View\Element\AbstractBlock;
*/
class Related extends AbstractProduct implements IdentityInterface
{
/**
* @var Collection
*/
protected $_collectionFactory;
/**
* @var Collection
*/
......@@ -71,8 +79,10 @@ class Related extends AbstractProduct implements IdentityInterface
ProductVisibility $catalogProductVisibility,
CheckoutSession $checkoutSession,
Manager $moduleManager,
CollectionFactory $collectionFactory,
array $data = []
) {
$this->_collectionFactory = $collectionFactory;
$this->_checkoutCart = $checkoutCart;
$this->_catalogProductVisibility = $catalogProductVisibility;
$this->_checkoutSession = $checkoutSession;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment