summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-13 15:43:42 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-07-23 08:33:17 +0200
commit0763a173321488acaadceb1eb0ecf1ec8691bf21 (patch)
treee3a722bae6695c6ce2e0feaf06298effcf92d773 /lib/private/Share20
parent99d0ba5f7ea45bb636cfcfc2de144e25af88b916 (diff)
downloadnextcloud-server-0763a173321488acaadceb1eb0ecf1ec8691bf21.tar.gz
nextcloud-server-0763a173321488acaadceb1eb0ecf1ec8691bf21.zip
Move federated_share_added into a typed event
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/ProviderFactory.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php
index 128033f6498..0606fe9c849 100644
--- a/lib/private/Share20/ProviderFactory.php
+++ b/lib/private/Share20/ProviderFactory.php
@@ -39,6 +39,7 @@ use OCA\FederatedFileSharing\TokenHandler;
use OCA\ShareByMail\Settings\SettingsManager;
use OCA\ShareByMail\ShareByMailProvider;
use OCP\Defaults;
+use OCP\EventDispatcher\IEventDispatcher;
use OCP\IServerContainer;
use OCP\Share\IProviderFactory;
use OCP\Share\IShare;
@@ -127,7 +128,8 @@ class ProviderFactory implements IProviderFactory {
$this->serverContainer->query(\OCP\OCS\IDiscoveryService::class),
$this->serverContainer->getJobList(),
\OC::$server->getCloudFederationProviderManager(),
- \OC::$server->getCloudFederationFactory()
+ \OC::$server->getCloudFederationFactory(),
+ $this->serverContainer->query(IEventDispatcher::class)
);
$tokenHandler = new TokenHandler(
$this->serverContainer->getSecureRandom()