diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-04 12:11:07 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-12 14:24:01 +0100 |
commit | dbddbb634bcb6df346988b85cb2847e76e22e632 (patch) | |
tree | 7622e29c27a9c920bf8209466ebf01069a476160 /lib/public/sabrepluginevent.php | |
parent | cdc536c42367a1c7667a63c598f50b95956da759 (diff) | |
download | nextcloud-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.php | 15 |
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; + } } |