summaryrefslogtreecommitdiffstats
path: root/apps/federation
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federation')
-rw-r--r--apps/federation/lib/AppInfo/Application.php3
-rw-r--r--apps/federation/lib/TrustedServers.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/federation/lib/AppInfo/Application.php b/apps/federation/lib/AppInfo/Application.php
index ea8116e4353..3798a03cb54 100644
--- a/apps/federation/lib/AppInfo/Application.php
+++ b/apps/federation/lib/AppInfo/Application.php
@@ -32,6 +32,7 @@ use OCP\SabrePluginEvent;
use OCP\Util;
use Sabre\DAV\Auth\Plugin;
use Sabre\DAV\Server;
+use OCP\Share;
class Application extends App {
@@ -59,7 +60,7 @@ class Application extends App {
$hooksManager = $container->query(Hooks::class);
Util::connectHook(
- 'OCP\Share',
+ Share::class,
'federated_share_added',
$hooksManager,
'addServerHook'
diff --git a/apps/federation/lib/TrustedServers.php b/apps/federation/lib/TrustedServers.php
index 2067533c3e7..eda77a79325 100644
--- a/apps/federation/lib/TrustedServers.php
+++ b/apps/federation/lib/TrustedServers.php
@@ -28,6 +28,7 @@
namespace OCA\Federation;
use OC\HintException;
+use OCA\Federation\BackgroundJob\RequestSharedSecret;
use OCP\AppFramework\Http;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJobList;
@@ -116,7 +117,7 @@ class TrustedServers {
$token = $this->secureRandom->generate(16);
$this->dbHandler->addToken($url, $token);
$this->jobList->add(
- 'OCA\Federation\BackgroundJob\RequestSharedSecret',
+ RequestSharedSecret::class,
[
'url' => $url,
'token' => $token,