From c54746beb7c450dd87b13d2fa57e44a99dcd327e Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 22 Oct 2012 13:59:27 -0400
Subject: [PATCH] Renamed sms service to VuFind\SMS.

---
 module/VuFind/config/module.config.php                 | 2 +-
 module/VuFind/src/VuFind/Controller/AbstractRecord.php | 2 +-
 module/VuFind/src/VuFind/Controller/AjaxController.php | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php
index 88060b31fa2..2ac92b4d97b 100644
--- a/module/VuFind/config/module.config.php
+++ b/module/VuFind/config/module.config.php
@@ -321,7 +321,7 @@ $config = array(
             'VuFind\RecordLoader' => 'VuFind\Record\Loader',
             'VuFind\SearchSpecsReader' => 'VuFind\Config\SearchSpecsReader',
             'VuFind\SessionManager' => 'Zend\Session\SessionManager',
-            'sms' => 'VuFind\Mailer\SMS',
+            'VuFind\SMS' => 'VuFind\Mailer\SMS',
             'worldcatconnection' => 'VuFind\Connection\WorldCat',
             'worldcatutils' => 'VuFind\Connection\WorldCatUtils',
         ),
diff --git a/module/VuFind/src/VuFind/Controller/AbstractRecord.php b/module/VuFind/src/VuFind/Controller/AbstractRecord.php
index 71cdc03d398..e4f38fe776a 100644
--- a/module/VuFind/src/VuFind/Controller/AbstractRecord.php
+++ b/module/VuFind/src/VuFind/Controller/AbstractRecord.php
@@ -336,7 +336,7 @@ class AbstractRecord extends AbstractBase
         $driver = $this->loadRecord();
 
         // Load the SMS carrier list:
-        $sms = $this->getServiceLocator()->get('SMS');
+        $sms = $this->getServiceLocator()->get('VuFind\SMS');
         $view = $this->createViewModel();
         $view->carriers = $sms->getCarriers();
 
diff --git a/module/VuFind/src/VuFind/Controller/AjaxController.php b/module/VuFind/src/VuFind/Controller/AjaxController.php
index fb44a00bac1..cf1e7b435ed 100644
--- a/module/VuFind/src/VuFind/Controller/AjaxController.php
+++ b/module/VuFind/src/VuFind/Controller/AjaxController.php
@@ -938,7 +938,7 @@ class AjaxController extends AbstractBase
                 $this->params()->fromPost('id'),
                 $this->params()->fromPost('source', 'VuFind')
             );
-            $this->getServiceLocator()->get('SMS')->textRecord(
+            $this->getServiceLocator()->get('VuFind\SMS')->textRecord(
                 $this->params()->fromPost('provider'),
                 $this->params()->fromPost('to'), $record, $this->getViewRenderer()
             );
-- 
GitLab