Skip to content
Snippets Groups Projects
Commit 98fbedf2 authored by Tom Misilo's avatar Tom Misilo Committed by Demian Katz
Browse files

Add Support for Driver to Config and Factory

parent 4e7e754c
No related merge requests found
......@@ -387,6 +387,7 @@ $config = [
'horizonxmlapi' => 'VuFind\ILS\Driver\Factory::getHorizonXMLAPI',
'multibackend' => 'VuFind\ILS\Driver\Factory::getMultiBackend',
'noils' => 'VuFind\ILS\Driver\Factory::getNoILS',
'koharest' => 'VuFind\ILS\Driver\Factory::getKohaRest',
'unicorn' => 'VuFind\ILS\Driver\Factory::getUnicorn',
'voyager' => 'VuFind\ILS\Driver\Factory::getVoyager',
'voyagerrestful' => 'VuFind\ILS\Driver\Factory::getVoyagerRestful',
......@@ -397,6 +398,7 @@ $config = [
'evergreen' => 'VuFind\ILS\Driver\Evergreen',
'innovative' => 'VuFind\ILS\Driver\Innovative',
'koha' => 'VuFind\ILS\Driver\Koha',
'koharest' => 'VuFind\ILS\Driver\KohaRest',
'lbs4' => 'VuFind\ILS\Driver\LBS4',
'newgenlib' => 'VuFind\ILS\Driver\NewGenLib',
'polaris' => 'VuFind\ILS\Driver\Polaris',
......
......@@ -142,6 +142,18 @@ class Factory
return new NoILS($sm->getServiceLocator()->get('VuFind\RecordLoader'));
}
/**
* Factory for KohaRest driver.
*
* @param ServiceManager $sm Service manager.
*
* @return KohaRest
*/
public static function getKohaRest(ServiceManager $sm)
{
return new KohaRest($sm->getServiceLocator()->get('VuFind\DateConverter'));
}
/**
* Factory for Unicorn driver.
*
......
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