示例#1
0
 public static function getInstance()
 {
     if (null === self::$instance) {
         self::$instance = \afterlogic\DAV\Constants::DAV_DIGEST_AUTH ? new Backend\Digest() : new Backend\Basic();
     }
     return self::$instance;
 }
示例#2
0
 public static function getInstance()
 {
     if (null === self::$instance) {
         self::$instance = \CApi::GetConf('labs.dav.use-digest-auth', false) ? new Backend\Digest() : new Backend\Basic();
     }
     return self::$instance;
 }