This commit is contained in:
Christophe Massin 2014-07-29 14:25:32 +02:00
commit 01cc9eb62b

View File

@ -61,6 +61,16 @@ class LdapAdapter implements LoginAdapter
* @var \Zend\Authentication\Adapter\Ldap * @var \Zend\Authentication\Adapter\Ldap
*/ */
protected $adapter; 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 * @param array $configuration
@ -195,4 +205,4 @@ class LdapAdapter implements LoginAdapter
} }
} }