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

Renamed searchspecsreader service to VuFind\SearchSpecsReader.

parent acea295d
No related merge requests found
...@@ -319,7 +319,7 @@ $config = array( ...@@ -319,7 +319,7 @@ $config = array(
'VuFind\CacheManager' => 'VuFind\Cache\Manager', 'VuFind\CacheManager' => 'VuFind\Cache\Manager',
'VuFind\Mailer' => 'VuFind\Mailer', 'VuFind\Mailer' => 'VuFind\Mailer',
'VuFind\RecordLoader' => 'VuFind\Record\Loader', 'VuFind\RecordLoader' => 'VuFind\Record\Loader',
'searchspecsreader' => 'VuFind\Config\SearchSpecsReader', 'VuFind\SearchSpecsReader' => 'VuFind\Config\SearchSpecsReader',
'sessionmanager' => 'Zend\Session\SessionManager', 'sessionmanager' => 'Zend\Session\SessionManager',
'sms' => 'VuFind\Mailer\SMS', 'sms' => 'VuFind\Mailer\SMS',
'worldcatconnection' => 'VuFind\Connection\WorldCat', 'worldcatconnection' => 'VuFind\Connection\WorldCat',
......
...@@ -227,8 +227,8 @@ class Solr implements ServiceLocatorAwareInterface, \Zend\Log\LoggerAwareInterfa ...@@ -227,8 +227,8 @@ class Solr implements ServiceLocatorAwareInterface, \Zend\Log\LoggerAwareInterfa
{ {
// Only load specs once: // Only load specs once:
if ($this->searchSpecs === false) { if ($this->searchSpecs === false) {
$this->searchSpecs = $this->getServiceLocator()->get('SearchSpecsReader') $this->searchSpecs = $this->getServiceLocator()
->get($this->searchSpecsFile); ->get('VuFind\SearchSpecsReader')->get($this->searchSpecsFile);
} }
// Special case -- null $handler means we want all search specs. // Special case -- null $handler means we want all search specs.
......
...@@ -128,7 +128,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase ...@@ -128,7 +128,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
'VuFind\RecordDriverPluginManager', $recordDriverFactory 'VuFind\RecordDriverPluginManager', $recordDriverFactory
); );
$this->serviceManager->setService( $this->serviceManager->setService(
'SearchSpecsReader', new \VuFind\Config\SearchSpecsReader() 'VuFind\SearchSpecsReader', new \VuFind\Config\SearchSpecsReader()
); );
$this->serviceManager->setService( $this->serviceManager->setService(
'VuFind\Logger', new \VuFind\Log\Logger() 'VuFind\Logger', new \VuFind\Log\Logger()
......
...@@ -49,7 +49,7 @@ class SearchSpecsReaderTest extends \VuFindTest\Unit\TestCase ...@@ -49,7 +49,7 @@ class SearchSpecsReaderTest extends \VuFindTest\Unit\TestCase
{ {
// The searchspecs.yaml file should define author dismax fields (among many // The searchspecs.yaml file should define author dismax fields (among many
// other things). // other things).
$reader = $this->getServiceManager()->get('SearchSpecsReader'); $reader = $this->getServiceManager()->get('VuFind\SearchSpecsReader');
$specs = $reader->get('searchspecs.yaml'); $specs = $reader->get('searchspecs.yaml');
$this->assertTrue( $this->assertTrue(
isset($specs['Author']['DismaxFields']) isset($specs['Author']['DismaxFields'])
......
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