Skip to content

Commit

Permalink
Merge pull request #147 from AleksandrsKondratjevs/master
Browse files Browse the repository at this point in the history
Fix compatibility issues with 2.4.6 magento
  • Loading branch information
AleksandrsKondratjevs authored Apr 4, 2023
2 parents c035e13 + 7d581e8 commit 24076ed
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions src/Model/Layer/Filter/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@

namespace ScandiPWA\CatalogGraphQl\Model\Layer\Filter;

use Magento\CatalogGraphQl\DataProvider\CategoryAttributesMapper;
use Magento\Catalog\Model\ResourceModel\Category\CollectionFactory;
use Magento\CatalogGraphQl\DataProvider\Category\Query\CategoryAttributeQuery;
use Magento\CatalogGraphQl\DataProvider\CategoryAttributesMapper;
use Magento\CatalogGraphQl\DataProvider\Product\LayeredNavigation\Builder\Aggregations\Category\IncludeDirectChildrenOnly;
use Magento\CatalogGraphQl\DataProvider\Product\LayeredNavigation\Builder\Category as OriginalCategoryBuilder;
use Magento\CatalogGraphQl\DataProvider\Product\LayeredNavigation\Formatter\LayerFormatter;
use Magento\CatalogGraphQl\DataProvider\Product\LayeredNavigation\RootCategoryProvider;
use Magento\Framework\Api\Search\AggregationInterface;
use Magento\Framework\App\ResourceConnection;
use Magento\CatalogGraphQl\DataProvider\Product\LayeredNavigation\Formatter\LayerFormatter;
use Magento\CatalogGraphQl\DataProvider\Product\LayeredNavigation\Builder\Category as OriginalCategoryBuilder;
use Magento\Framework\GraphQl\Query\Uid;
use ScandiPWA\CatalogGraphQl\Model\Layer\AttributeDataProvider;

/**
Expand Down Expand Up @@ -50,15 +52,20 @@ public function __construct(
ResourceConnection $resourceConnection,
LayerFormatter $layerFormatter,
IncludeDirectChildrenOnly $includeDirectChildrenOnly,
CollectionFactory $categoryCollectionFactory,
Uid $uidEncoder,
AttributeDataProvider $attributeDataProvider
) {
)
{
parent::__construct(
$categoryAttributeQuery,
$attributesMapper,
$rootCategoryProvider,
$resourceConnection,
$layerFormatter,
$includeDirectChildrenOnly
$categoryAttributeQuery,
$attributesMapper,
$rootCategoryProvider,
$resourceConnection,
$layerFormatter,
$includeDirectChildrenOnly,
$categoryCollectionFactory,
$uidEncoder
);

$this->attributeDataProvider = $attributeDataProvider;
Expand Down

0 comments on commit 24076ed

Please sign in to comment.