Update LdapAdapter.php
provide static function for instantiation
This commit is contained in:
parent
8d274b80a6
commit
2be6fc2452
@ -58,6 +58,16 @@ class LdapAdapter implements LoginAdapter
|
||||
*/
|
||||
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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user