summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/exceptionloggerplugin.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/exceptionloggerplugin.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/exceptionloggerplugin.php')
-rw-r--r--lib/private/connector/sabre/exceptionloggerplugin.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/connector/sabre/exceptionloggerplugin.php b/lib/private/connector/sabre/exceptionloggerplugin.php
index 5eaf1e87621..5963123709b 100644
--- a/lib/private/connector/sabre/exceptionloggerplugin.php
+++ b/lib/private/connector/sabre/exceptionloggerplugin.php
@@ -9,17 +9,17 @@
* @license AGPL3
*/
-class OC_Connector_Sabre_ExceptionLoggerPlugin extends Sabre_DAV_ServerPlugin
+class OC_Connector_Sabre_ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin
{
private $nonFatalExceptions = array(
- 'Sabre_DAV_Exception_NotAuthenticated' => true,
+ 'Sabre\DAV\Exception\NotAuthenticated' => true,
// the sync client uses this to find out whether files exist,
// so it is not always an error, log it as debug
- 'Sabre_DAV_Exception_NotFound' => true,
+ 'Sabre\DAV\Exception\NotFound' => true,
// this one mostly happens when the same file is uploaded at
// exactly the same time from two clients, only one client
// wins, the second one gets "Precondition failed"
- 'Sabre_DAV_Exception_PreconditionFailed' => true,
+ 'Sabre\DAV\Exception\PreconditionFailed' => true,
);
private $appName;
@@ -34,15 +34,15 @@ class OC_Connector_Sabre_ExceptionLoggerPlugin extends Sabre_DAV_ServerPlugin
/**
* This initializes the plugin.
*
- * This function is called by Sabre_DAV_Server, after
+ * This function is called by \Sabre\DAV\Server, after
* addPlugin is called.
*
* This method should set up the required event subscriptions.
*
- * @param Sabre_DAV_Server $server
+ * @param \Sabre\DAV\Server $server
* @return void
*/
- public function initialize(Sabre_DAV_Server $server) {
+ public function initialize(\Sabre\DAV\Server $server) {
$server->subscribeEvent('exception', array($this, 'logException'), 10);
}