|
13 | 13 | namespace ScandiPWA\CatalogGraphQl\Model\Resolver;
|
14 | 14 |
|
15 | 15 | use Magento\CatalogGraphQl\Model\Resolver\Aggregations as AggregationsBase;
|
16 |
| -use Magento\CatalogGraphQl\Model\Resolver\Layer\DataProvider\Filters; |
17 | 16 | use Magento\CatalogGraphQl\DataProvider\Product\LayeredNavigation\LayerBuilder;
|
| 17 | +use Magento\Directory\Model\PriceCurrency; |
18 | 18 | use Magento\Framework\GraphQl\Config\Element\Field;
|
19 | 19 | use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
|
20 |
| -use Magento\Framework\Exception\LocalizedException; |
21 |
| -use Magento\Store\Api\Data\StoreInterface; |
| 20 | +use Magento\CatalogGraphQl\DataProvider\Product\LayeredNavigation\Builder\Aggregations\Category; |
22 | 21 | use Magento\Catalog\Model\CategoryRepository;
|
23 | 22 | use Magento\Catalog\Model\ResourceModel\Eav\Attribute;
|
24 | 23 |
|
25 |
| -class Aggregations extends AggregationsBase { |
| 24 | +class Aggregations extends AggregationsBase |
| 25 | +{ |
26 | 26 | /**
|
27 | 27 | * @var Attribute
|
28 | 28 | */
|
@@ -52,15 +52,19 @@ class Aggregations extends AggregationsBase {
|
52 | 52 | * @inheritdoc
|
53 | 53 | */
|
54 | 54 | public function __construct(
|
55 |
| - Filters $filtersDataProvider, |
56 | 55 | LayerBuilder $layerBuilder,
|
57 | 56 | Attribute $attribute,
|
58 |
| - CategoryRepository $categoryRepository |
| 57 | + CategoryRepository $categoryRepository, |
| 58 | + PriceCurrency $priceCurrency = null, |
| 59 | + Category\IncludeDirectChildrenOnly $includeDirectChildrenOnly = null |
| 60 | + |
59 | 61 | )
|
60 | 62 | {
|
61 | 63 | parent::__construct(
|
62 |
| - $filtersDataProvider, |
63 |
| - $layerBuilder |
| 64 | + $layerBuilder, |
| 65 | + $priceCurrency, |
| 66 | + $includeDirectChildrenOnly |
| 67 | + |
64 | 68 | );
|
65 | 69 |
|
66 | 70 | $this->attribute = $attribute;
|
|
0 commit comments