Skip to content
Snippets Groups Projects
Commit 2840230d authored by Demian Katz's avatar Demian Katz
Browse files

Use plugin manager instead of Config\Reader.

parent 545c921f
Branches
Tags
No related merge requests found
...@@ -119,7 +119,8 @@ class Params extends \VuFind\Search\Solr\Params ...@@ -119,7 +119,8 @@ class Params extends \VuFind\Search\Solr\Params
protected function getRecommendationSettings() protected function getRecommendationSettings()
{ {
// Collection recommendations // Collection recommendations
$searchSettings = \VuFind\Config\Reader::getConfig('Collection'); $searchSettings = $this->getServiceLocator()->get('VuFind\Config')
->get('Collection');
return isset($searchSettings->Recommend) return isset($searchSettings->Recommend)
? $searchSettings->Recommend->toArray() ? $searchSettings->Recommend->toArray()
: array('side' => array('CollectionSideFacets:Facets::Collection:true')); : array('side' => array('CollectionSideFacets:Facets::Collection:true'));
......
...@@ -26,8 +26,7 @@ ...@@ -26,8 +26,7 @@
* @link http://www.vufind.org Main Page * @link http://www.vufind.org Main Page
*/ */
namespace VuFind\Search\WorldCat; namespace VuFind\Search\WorldCat;
use VuFind\Config\Reader as ConfigReader, use VuFind\Exception\RecordMissing as RecordMissingException,
VuFind\Exception\RecordMissing as RecordMissingException,
VuFind\Search\Base\Results as BaseResults; VuFind\Search\Base\Results as BaseResults;
/** /**
...@@ -65,7 +64,7 @@ class Results extends BaseResults ...@@ -65,7 +64,7 @@ class Results extends BaseResults
protected function performSearch() protected function performSearch()
{ {
// Collect the search parameters: // Collect the search parameters:
$config = ConfigReader::getConfig(); $config = $this->getServiceLocator()->get('VuFind\Config')->get('config');
$wc = $this->getWorldCatConnection(); $wc = $this->getWorldCatConnection();
$overrideQuery = $this->getParams()->getOverrideQuery(); $overrideQuery = $this->getParams()->getOverrideQuery();
$query = empty($overrideQuery) $query = empty($overrideQuery)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment