Skip to content

Commit

Permalink
Remove hierarchical facet helper from SideFacets.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Aug 22, 2023
1 parent e38ae5b commit 7a5f52d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
23 changes: 0 additions & 23 deletions module/VuFind/src/VuFind/Recommend/SideFacets.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

namespace VuFind\Recommend;

use VuFind\Search\Solr\HierarchicalFacetHelper;
use VuFind\Solr\Utils as SolrUtils;

/**
Expand Down Expand Up @@ -130,28 +129,6 @@ class SideFacets extends AbstractFacets
*/
protected $hierarchicalFacetSortOptions = [];

/**
* Hierarchical facet helper
*
* @var HierarchicalFacetHelper
*/
protected $hierarchicalFacetHelper;

/**
* Constructor
*
* @param \VuFind\Config\PluginManager $configLoader Configuration loader
* @param HierarchicalFacetHelper $facetHelper Helper for handling
* hierarchical facets
*/
public function __construct(
\VuFind\Config\PluginManager $configLoader,
HierarchicalFacetHelper $facetHelper = null
) {
parent::__construct($configLoader);
$this->hierarchicalFacetHelper = $facetHelper;
}

/**
* Store the configuration of the recommendation module.
*
Expand Down
5 changes: 1 addition & 4 deletions module/VuFind/src/VuFind/Recommend/SideFacetsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options passed to factory.');
}
return new $requestedName(
$container->get(\VuFind\Config\PluginManager::class),
$container->get(\VuFind\Search\Solr\HierarchicalFacetHelper::class)
);
return new $requestedName($container->get(\VuFind\Config\PluginManager::class));
}
}

0 comments on commit 7a5f52d

Please sign in to comment.