Update LdapAdapter.php
provide static function for instantiation
This commit is contained in:
parent
8d274b80a6
commit
2be6fc2452
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user