generated from boboko/starter
minor changes in comments
This commit is contained in:
@@ -28,10 +28,6 @@ public function __construct(
|
||||
* @param Closure(array<string, string|int>): string $url
|
||||
* @param ?int $collectionId scope to a collection, or null for every product
|
||||
* @param ?string $query scope to a text search — when given, calls
|
||||
* ProductSearchService::search() instead of ProductService::list().
|
||||
* ProductSearchService::search() returns the exact same
|
||||
* Modules\Core\Catalog\DTOs\ProductListingResult list() does, so
|
||||
* everything below this point is identical either way.
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function build(ProductListing $listing, Closure $url, ?int $collectionId = null, ?string $query = null): array
|
||||
@@ -65,8 +61,7 @@ public function build(ProductListing $listing, Closure $url, ?int $collectionId
|
||||
|
||||
// Slider bounds — the price span of everything matching the *other*
|
||||
// filters, rounded to whole euros, plus whether the current price params
|
||||
// actually narrow that span. All computed in core now
|
||||
// (ProductService::priceSliderBounds()).
|
||||
// actually narrow that span. All computed in core
|
||||
$priceBounds = $result->priceBounds;
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user