Beispiel #1
0
 /**
  * Constructor.
  *
  * @param Context $context
  * @param ProductCollectionFactory $productCollectionFactory
  * @param ProductVisibility $productVisibility
  * @param StoreManagerInterface $storeManager
  * @param AccountHelper $accountHelper
  * @param ProductBuilder $productBuilder
  */
 public function __construct(Context $context, ProductCollectionFactory $productCollectionFactory, ProductVisibility $productVisibility, StoreManagerInterface $storeManager, AccountHelper $accountHelper, ProductBuilder $productBuilder)
 {
     parent::__construct($context, $storeManager, $accountHelper);
     $this->_productCollectionFactory = $productCollectionFactory;
     $this->_productVisibility = $productVisibility;
     $this->_productBuilder = $productBuilder;
 }
Beispiel #2
0
 /**
  * Constructor.
  *
  * @param Context $context
  * @param OrderCollectionFactory $orderCollectionFactory
  * @param StoreManagerInterface $storeManager
  * @param AccountHelper $accountHelper
  * @param OrderBuilder $orderBuilder
  */
 public function __construct(Context $context, OrderCollectionFactory $orderCollectionFactory, StoreManagerInterface $storeManager, AccountHelper $accountHelper, OrderBuilder $orderBuilder)
 {
     parent::__construct($context, $storeManager, $accountHelper);
     $this->_orderCollectionFactory = $orderCollectionFactory;
     $this->_orderBuilder = $orderBuilder;
 }