summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/principal.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-09 14:25:48 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-04 12:22:23 +0200
commit76e04027bcc8f02aa665b960e229882f04986ee7 (patch)
tree191d768f81cda280b6cd93ebed6b7203cb48ec82 /lib/private/connector/sabre/principal.php
parentade6ed37976b405322e428df8c6697116fc9692f (diff)
downloadnextcloud-server-76e04027bcc8f02aa665b960e229882f04986ee7.tar.gz
nextcloud-server-76e04027bcc8f02aa665b960e229882f04986ee7.zip
Upgrade SabreDAV to 1.8.10
Updating SabreDAV namespaces
Diffstat (limited to 'lib/private/connector/sabre/principal.php')
-rw-r--r--lib/private/connector/sabre/principal.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/connector/sabre/principal.php b/lib/private/connector/sabre/principal.php
index 2075aa55c86..83cfcbb3a13 100644
--- a/lib/private/connector/sabre/principal.php
+++ b/lib/private/connector/sabre/principal.php
@@ -7,7 +7,7 @@
* See the COPYING-README file.
*/
-class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend {
+class OC_Connector_Sabre_Principal implements Sabre\DAVACL\IPrincipalBackend {
/**
* Returns a list of principals based on a prefix.
*
@@ -68,7 +68,7 @@ class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend {
// TODO: for now the group principal has only one member, the user itself
$principal = $this->getPrincipalByPath($principal);
if (!$principal) {
- throw new Sabre_DAV_Exception('Principal not found');
+ throw new \Sabre\DAV\Exception('Principal not found');
}
return array(
@@ -83,13 +83,13 @@ class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend {
* @return array
*/
public function getGroupMembership($principal) {
- list($prefix, $name) = Sabre_DAV_URLUtil::splitPath($principal);
+ list($prefix, $name) = \Sabre\DAV\URLUtil::splitPath($principal);
$group_membership = array();
if ($prefix == 'principals') {
$principal = $this->getPrincipalByPath($principal);
if (!$principal) {
- throw new Sabre_DAV_Exception('Principal not found');
+ throw new \Sabre\DAV\Exception('Principal not found');
}
// TODO: for now the user principal has only its own groups
@@ -115,7 +115,7 @@ class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend {
* @return void
*/
public function setGroupMemberSet($principal, array $members) {
- throw new Sabre_DAV_Exception('Setting members of the group is not supported yet');
+ throw new \Sabre\DAV\Exception('Setting members of the group is not supported yet');
}
function updatePrincipal($path, $mutations) {