Skip to content
Snippets Groups Projects
Commit 9e4e13ca authored by Dorian Merz's avatar Dorian Merz Committed by Frank Morgner
Browse files

refs #12259

* fixes serviceLocater at Permission ViewHelper
parent 7ce4dc1d
No related merge requests found
......@@ -167,7 +167,7 @@ trait PdaTrait
$view = $this->createViewModel($params);
// Load configuration:
$config = $this->getServiceLocator()->get('VuFind\Config')->get('config');
$config = $this->serviceLocator->get('VuFind\Config')->get('config');
$view->fieldOfStudyList = isset($config->CustomSite->field_of_study)
? $config->CustomSite->field_of_study->toArray() : [];
......
......@@ -84,4 +84,19 @@ class Factory extends FactoryBase
strrpos(static::class, '\\')
);
}
}
\ No newline at end of file
/**
* Construct the RecordController.
*
* @param ServiceManager $sm Service manager.
*
* @return RecordController
*/
public static function getRecordController(ServiceManager $sm)
{
return new RecordController(
$sm->getServiceLocator(),
$sm->getServiceLocator()->get('VuFind\Config')->get('config')
);
}
}
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