From 8e5abcc3905bbdfbe3a92e19ef05d3cd39bb0d8c Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 17 Jul 2012 12:37:18 -0400
Subject: [PATCH] Eliminated redundant implementation of
 ServiceLocatorAwareInterface.

---
 .../src/VuFind/Controller/AbstractBase.php    | 28 -------------------
 1 file changed, 28 deletions(-)

diff --git a/module/VuFind/src/VuFind/Controller/AbstractBase.php b/module/VuFind/src/VuFind/Controller/AbstractBase.php
index 45d82b5a72a..18a4d38961f 100644
--- a/module/VuFind/src/VuFind/Controller/AbstractBase.php
+++ b/module/VuFind/src/VuFind/Controller/AbstractBase.php
@@ -42,10 +42,7 @@ use Zend\Mvc\Controller\AbstractActionController,
  * @link     http://vufind.org/wiki/building_a_recommendations_module Wiki
  */
 class AbstractBase extends AbstractActionController
-    implements ServiceLocatorAwareInterface
 {
-    protected $serviceLocator;
-
     /**
      * Constructor
      */
@@ -80,31 +77,6 @@ class AbstractBase extends AbstractActionController
         return $view;
     }
 
-    /**
-     * Get the service locator object.
-     *
-     * @return ServiceLocatorInterface
-     */
-    public function getServiceLocator()
-    {
-        if (!is_object($this->serviceLocator)) {
-            throw new \Exception("Problem accessing service locator");
-        }
-        return $this->serviceLocator;
-    }
-
-    /**
-     * Set the service locator object.
-     *
-     * @param ServiceLocatorInterface $serviceLocator Service locator.
-     *
-     * @return void
-     */
-    public function setServiceLocator(ServiceLocatorInterface $serviceLocator)
-    {
-        $this->serviceLocator = $serviceLocator;
-    }
-
     /**
      * Get the account manager object.
      *
-- 
GitLab