From 0763a173321488acaadceb1eb0ecf1ec8691bf21 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 13 Jul 2020 15:43:42 +0200 Subject: Move federated_share_added into a typed event Signed-off-by: Morris Jobke --- lib/private/Share20/ProviderFactory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/private/Share20/ProviderFactory.php') 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() -- cgit v1.2.3