Commit c8300a9b authored by Andy Brüchert's avatar Andy Brüchert
Browse files

fixed reference to SimpleSAML\Configuration

parent ff96b0c9
......@@ -26,6 +26,8 @@ namespace SimpleSAML\Module\pica\Auth\Source;
use HAB\Pica\Auth;
use SimpleSAML\Configuration;
/**
* Authentication source for Pica-based library systems.
*
......@@ -60,7 +62,7 @@ class Pica extends \SimpleSAML\Module\core\Auth\UserPassBase
throw new Exception('Pica authentication source configuration missing: [pica]');
}
$configuration = SimpleSAML_Configuration::loadFromArray($config['pica']);
$configuration = Configuration::loadFromArray($config['pica']);
$this->factory = $this->createAuthenticationModuleFactory($configuration);
$this->message = $configuration->getArray('errors', array());
$this->attrmap = $configuration->getArray('attrmap', array());
......@@ -87,10 +89,10 @@ class Pica extends \SimpleSAML\Module\core\Auth\UserPassBase
/**
* Return authentication module factory function.
*
* @param SimpleSAML_Configuration $config
* @param Configuration $config
* @return callable
*/
public function createAuthenticationModuleFactory (SimpleSAML_Configuration $config)
public function createAuthenticationModuleFactory (Configuration $config)
{
$module = $config->getString('module');
switch ($module) {
......
Markdown is supported
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