From 72633b762ebcc0ec3b1153f703237dd4924d5d7e Mon Sep 17 00:00:00 2001 From: Matus Marko Date: Wed, 10 May 2017 08:34:44 +0200 Subject: [PATCH] Enable filter type extension in search request - add methods --- lib/internal/Magento/Framework/Search/Request/Cleaner.php | 2 +- lib/internal/Magento/Framework/Search/Request/Mapper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/Magento/Framework/Search/Request/Cleaner.php b/lib/internal/Magento/Framework/Search/Request/Cleaner.php index 734554c43e213..93ab527e035cc 100644 --- a/lib/internal/Magento/Framework/Search/Request/Cleaner.php +++ b/lib/internal/Magento/Framework/Search/Request/Cleaner.php @@ -154,7 +154,7 @@ private function cleanAggregations() * @throws \Exception * @SuppressWarnings(PHPMD.CyclomaticComplexity) */ - private function cleanFilter($filterName) + protected function cleanFilter($filterName) { if (!isset($this->requestData['filters'][$filterName])) { throw new \Exception('Filter ' . $filterName . ' does not exist'); diff --git a/lib/internal/Magento/Framework/Search/Request/Mapper.php b/lib/internal/Magento/Framework/Search/Request/Mapper.php index 1c18e91c3ed49..635d566ad7a78 100644 --- a/lib/internal/Magento/Framework/Search/Request/Mapper.php +++ b/lib/internal/Magento/Framework/Search/Request/Mapper.php @@ -176,7 +176,7 @@ private function mapQuery($queryName) * @throws \InvalidArgumentException * @throws StateException */ - private function mapFilter($filterName) + protected function mapFilter($filterName) { if (!isset($this->filters[$filterName])) { throw new \Exception('Filter ' . $filterName . ' does not exist');