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

Eliminated static config\reader call.

parent 6022d357
Branches
Tags
No related merge requests found
...@@ -26,8 +26,7 @@ ...@@ -26,8 +26,7 @@
* @link http://vufind.org/wiki/vufind2:developer_manual Wiki * @link http://vufind.org/wiki/vufind2:developer_manual Wiki
*/ */
namespace VuFind\SMS; namespace VuFind\SMS;
use VuFind\Config\Reader as ConfigReader, use Zend\ServiceManager\ServiceLocatorInterface;
Zend\ServiceManager\ServiceLocatorInterface;
/** /**
* Factory for instantiating SMS objects * Factory for instantiating SMS objects
...@@ -50,8 +49,8 @@ class Factory implements \Zend\ServiceManager\FactoryInterface ...@@ -50,8 +49,8 @@ class Factory implements \Zend\ServiceManager\FactoryInterface
public function createService(ServiceLocatorInterface $sm) public function createService(ServiceLocatorInterface $sm)
{ {
// Load configurations: // Load configurations:
$mainConfig = ConfigReader::getConfig(); $mainConfig = $sm->get('VuFind\Config')->get('config');
$smsConfig = ConfigReader::getConfig('sms'); $smsConfig = $sm->get('VuFind\Config')->get('sms');
// Determine SMS type: // Determine SMS type:
$type = isset($smsConfig->General->smsType) $type = isset($smsConfig->General->smsType)
......
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