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; }
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; }