コード例 #1
0
 /**
  * FilterList constructor.
  * @param \Magento\Framework\ObjectManagerInterface $objectManager
  * @param \Magento\Catalog\Model\Layer\FilterableAttributeListInterface $filterableAttributes
  * @param \Boxalino\Intelligence\Helper\P13n\Adapter $p13nHelper
  * @param \BOxalino\Intelligence\Helper\Data $bxHelperData
  * @param \Psr\Log\LoggerInterface $logger
  * @param array $filters
  */
 public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Catalog\Model\Layer\FilterableAttributeListInterface $filterableAttributes, \Boxalino\Intelligence\Helper\P13n\Adapter $p13nHelper, \BOxalino\Intelligence\Helper\Data $bxHelperData, \Psr\Log\LoggerInterface $logger, array $filters = [])
 {
     parent::__construct($objectManager, $filterableAttributes, $filters);
     $this->_logger = $logger;
     $this->bxHelperData = $bxHelperData;
     $this->p13nHelper = $p13nHelper;
 }
コード例 #2
0
 public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\App\RequestInterface $request, Layer\FilterableAttributeListInterface $filterableAttributes, \Celebros\ConversionPro\Helper\Data $helper, \Celebros\ConversionPro\Helper\Search $searchHelper, array $filters = [])
 {
     $this->filterTypes[self::QUESTION_FILTER] = 'Celebros\\ConversionPro\\Model\\Catalog\\Layer\\Filter\\Question';
     $this->request = $request;
     $this->helper = $helper;
     $this->searchHelper = $searchHelper;
     parent::__construct($objectManager, $filterableAttributes, $filters);
 }