109 \
Magento\Customer\Model\Session $customerSession,
110 \
Magento\Customer\Model\Visitor $customerVisitor,
112 \
Magento\Catalog\Model\Session $catalogSession,
119 $this->_compareItemFactory = $compareItemFactory;
120 $this->_itemCollectionFactory = $itemCollectionFactory;
121 $this->_customerSession = $customerSession;
122 $this->_customerVisitor = $customerVisitor;
123 $this->_catalogProductCompareList = $catalogProductCompareList;
124 $this->_catalogSession = $catalogSession;
125 $this->_formKeyValidator = $formKeyValidator;
128 parent::__construct($context);
$_catalogProductCompareList
setCustomerId($customerId)
__construct(\Magento\Framework\App\Action\Context $context, \Magento\Catalog\Model\Product\Compare\ItemFactory $compareItemFactory, \Magento\Catalog\Model\ResourceModel\Product\Compare\Item\CollectionFactory $itemCollectionFactory, \Magento\Customer\Model\Session $customerSession, \Magento\Customer\Model\Visitor $customerVisitor, \Magento\Catalog\Model\Product\Compare\ListCompare $catalogProductCompareList, \Magento\Catalog\Model\Session $catalogSession, \Magento\Store\Model\StoreManagerInterface $storeManager, Validator $formKeyValidator, PageFactory $resultPageFactory, ProductRepositoryInterface $productRepository)