Example #1
0
 /**
  * @param ItemFactory $filterItemFactory
  * @param \Magento\Framework\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Layer $layer
  * @param \Magento\Catalog\Model\Resource\Layer\Filter\DecimalFactory $filterDecimalFactory
  * @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory, \Magento\Framework\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Layer $layer, \Magento\Catalog\Model\Resource\Layer\Filter\DecimalFactory $filterDecimalFactory, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, array $data = array())
 {
     $this->_resource = $filterDecimalFactory->create();
     $this->_requestVar = 'decimal';
     $this->priceCurrency = $priceCurrency;
     parent::__construct($filterItemFactory, $storeManager, $layer, $data);
 }
Example #2
0
 /**
  * @param \Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Layer $layer
  * @param \Magento\Catalog\Model\Layer\Filter\Item\DataBuilder $itemDataBuilder
  * @param \Magento\Catalog\Model\Resource\Layer\Filter\DecimalFactory $filterDecimalFactory
  * @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Layer $layer, \Magento\Catalog\Model\Layer\Filter\Item\DataBuilder $itemDataBuilder, \Magento\Catalog\Model\Resource\Layer\Filter\DecimalFactory $filterDecimalFactory, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, array $data = [])
 {
     parent::__construct($filterItemFactory, $storeManager, $layer, $itemDataBuilder, $data);
     $this->resource = $filterDecimalFactory->create();
     $this->priceCurrency = $priceCurrency;
 }