private Shopware_Components_Config
$config;
public function __construct( QueryBuilderFactoryInterface
$queryBuilderFactory,
Shopware_Components_Snippet_Manager
$snippetManager,
QueryAliasMapper
$queryAliasMapper,
Shopware_Components_Config
$config ) { $this->queryBuilderFactory =
$queryBuilderFactory;
$this->snippetNamespace =
$snippetManager->
getNamespace('frontend/listing/facet_labels'
);
$this->config =
$config;
$this->fieldName =
$queryAliasMapper->
getShortAlias('rating'
) ?? 'rating';
} public function supportsFacet(FacetInterface
$facet) { return $facet instanceof VoteAverageFacet;
} public function generatePartialFacet( FacetInterface
$facet,
Criteria
$reverted,
Criteria
$criteria,