summaryrefslogtreecommitdiffstats
path: root/lib/public/sabrepluginevent.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-04 12:11:07 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-12 14:24:01 +0100
commitdbddbb634bcb6df346988b85cb2847e76e22e632 (patch)
tree7622e29c27a9c920bf8209466ebf01069a476160 /lib/public/sabrepluginevent.php
parentcdc536c42367a1c7667a63c598f50b95956da759 (diff)
downloadnextcloud-server-dbddbb634bcb6df346988b85cb2847e76e22e632.tar.gz
nextcloud-server-dbddbb634bcb6df346988b85cb2847e76e22e632.zip
Use EventDispatcher to allow additional setup of auth backends - move federation auth to federation app
Diffstat (limited to 'lib/public/sabrepluginevent.php')
-rw-r--r--lib/public/sabrepluginevent.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/public/sabrepluginevent.php b/lib/public/sabrepluginevent.php
index fed3237166d..1a64c8ac3ed 100644
--- a/lib/public/sabrepluginevent.php
+++ b/lib/public/sabrepluginevent.php
@@ -23,6 +23,7 @@ namespace OCP;
use OCP\AppFramework\Http;
+use Sabre\DAV\Server;
use Symfony\Component\EventDispatcher\Event;
/**
@@ -36,12 +37,16 @@ class SabrePluginEvent extends Event {
/** @var string */
protected $message;
+ /** @var Server */
+ protected $server;
+
/**
* @since 8.2.0
*/
- public function __construct() {
+ public function __construct($server = null) {
$this->message = '';
$this->statusCode = Http::STATUS_OK;
+ $this->server = $server;
}
/**
@@ -79,4 +84,12 @@ class SabrePluginEvent extends Event {
public function getMessage() {
return $this->message;
}
+
+ /**
+ * @return null|Server
+ * @since 9.0.0
+ */
+ public function getServer() {
+ return $this->server;
+ }
}