summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-06-30 15:07:48 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-06-30 15:07:48 +0200
commit134dc136e66f7ead2e4ffc7d74711e1d9a8dc58d (patch)
tree697ecafe3b47496a9e0a4ca54482a41d7435dbe7 /lib/private/connector/sabre
parent039a470a6a908c195571e2fa6c4cbb5f8485b265 (diff)
downloadnextcloud-server-134dc136e66f7ead2e4ffc7d74711e1d9a8dc58d.tar.gz
nextcloud-server-134dc136e66f7ead2e4ffc7d74711e1d9a8dc58d.zip
Avoid namespace clash
Diffstat (limited to 'lib/private/connector/sabre')
-rw-r--r--lib/private/connector/sabre/auth.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/private/connector/sabre/auth.php b/lib/private/connector/sabre/auth.php
index 2255b2c0466..8a6eaab5bf8 100644
--- a/lib/private/connector/sabre/auth.php
+++ b/lib/private/connector/sabre/auth.php
@@ -34,7 +34,6 @@ use Exception;
use Sabre\DAV\Auth\Backend\AbstractBasic;
use Sabre\DAV\Exception\NotAuthenticated;
use Sabre\DAV\Exception\ServiceUnavailable;
-use Sabre\DAV\Server;
class Auth extends AbstractBasic {
const DAV_AUTHENTICATED = 'AUTHENTICATED_TO_DAV_BACKEND';
@@ -112,12 +111,12 @@ class Auth extends AbstractBasic {
* even if there are no HTTP Basic Auth headers.
* In other case, just fallback to the parent implementation.
*
- * @param Server $server
+ * @param \Sabre\DAV\Server $server
* @param string $realm
* @return bool
* @throws ServiceUnavailable
*/
- public function authenticate(Server $server, $realm) {
+ public function authenticate(\Sabre\DAV\Server $server, $realm) {
try {
$result = $this->auth($server, $realm);
@@ -132,11 +131,11 @@ class Auth extends AbstractBasic {
}
/**
- * @param Server $server
+ * @param \Sabre\DAV\Server $server
* @param $realm
* @return bool
*/
- private function auth(Server $server, $realm) {
+ private function auth(\Sabre\DAV\Server $server, $realm) {
if (\OC_User::handleApacheAuth() ||
(\OC_User::isLoggedIn() && is_null(\OC::$server->getSession()->get(self::DAV_AUTHENTICATED)))
) {