Update LdapAdapter.php

provide static function for instantiation
This commit is contained in:
jbout 2014-07-18 14:29:51 +02:00
parent 8d274b80a6
commit 2be6fc2452

View File

@ -57,6 +57,16 @@ class LdapAdapter implements LoginAdapter
* @var \Zend\Authentication\Adapter\Ldap
*/
protected $adapter;
/**
* Create an adapter from the configuration
*
* @param array $configuration
* @return \oat\authKeyValue\model\AuthKeyValueAdapter
*/
public static function createFromConfig(array $configuration) {
return new self($configuration);
}
/**
* @param array $configuration
@ -174,4 +184,4 @@ class LdapAdapter implements LoginAdapter
}
}
}