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

Eliminated redundant implementation of ServiceLocatorAwareInterface.

parent f19d821f
No related merge requests found
......@@ -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.
*
......
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