This commit is contained in:
Christophe Massin 2014-07-29 14:25:32 +02:00
commit 01cc9eb62b
1 changed files with 11 additions and 1 deletions

View File

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