Skip to content

Commit

Permalink
Enable filter type extension in search request
Browse files Browse the repository at this point in the history
- add methods
  • Loading branch information
markoweb committed May 10, 2017
1 parent 0e0a3ba commit 72633b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Search/Request/Cleaner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Search/Request/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 72633b7

Please sign in to comment.