diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 08:27:51 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 08:27:51 +0100 |
commit | 59e9b93be646c46a47ac780b60cc1f0b9cf6e258 (patch) | |
tree | 628a6b089e9169facbf6348941ff13f5a2e50f9b /lib/public | |
parent | 2e931b0c06988d9fbbeb405a31c69b4356eb24df (diff) | |
parent | bf1a2f28c2fae8de1441962208eb112e86266bcf (diff) | |
download | nextcloud-server-59e9b93be646c46a47ac780b60cc1f0b9cf6e258.tar.gz nextcloud-server-59e9b93be646c46a47ac780b60cc1f0b9cf6e258.zip |
Merge pull request #20948 from owncloud/fed-sync-contacts
Syncing system addressbooks across federated ownClouds
Diffstat (limited to 'lib/public')
-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; + } } |