Details
-
Story
-
Resolution: Fixed
-
High
-
1.6.0
-
None
Description
Story is about extracting the current private logic in Location Service and User Service to simplify getting sort clause based on a Location object, thus:
- Avoid Developers having to duplicate this mapping in own code, for mapping Location->sort* info to the correct Search sort clauses.
- Reduce code duplication internally in Repository.
This method will be exposed on SearchService with new method: getSortClauseFromLocation(Location $location) returning array of sort clauses for direct use on LocationQuery->sortClauses.
—
Originial desc:
With this SortClauseMapper is it possible to get the SortClause objects from a location.
It's accessible over the SearchService::getSortClauseFromLocation method.