Exemplo n.º 1
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Rss\Model\RssFactory $rssFactory
  * @param \Magento\SalesRule\Model\Resource\Rule\CollectionFactory $collectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Rss\Model\RssFactory $rssFactory, \Magento\SalesRule\Model\Resource\Rule\CollectionFactory $collectionFactory, array $data = array())
 {
     $this->_rssFactory = $rssFactory;
     $this->_collectionFactory = $collectionFactory;
     parent::__construct($context, $httpContext, $data);
 }
Exemplo n.º 2
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Helper\Data $catalogData, array $data = array())
 {
     $this->_catalogData = $catalogData;
     parent::__construct($context, $httpContext, $data);
     $this->_isScopePrivate = true;
 }