From 22a6781cdd94ba79172d792140d33a1193eb271f Mon Sep 17 00:00:00 2001 From: Andrew Summers <18727110+summersab@users.noreply.github.com> Date: Tue, 29 Aug 2023 17:58:44 -0500 Subject: [PATCH] Refactor `OC\Server::getCloudFederationFactory` Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com> --- lib/private/Share20/ProviderFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php index 8c01d6609155c..07da9cdbb8a80 100644 --- a/lib/private/Share20/ProviderFactory.php +++ b/lib/private/Share20/ProviderFactory.php @@ -43,6 +43,7 @@ use OCA\Talk\Share\RoomShareProvider; use OCP\Defaults; use OCP\EventDispatcher\IEventDispatcher; +use OCP\Federation\ICloudFederationFactory; use OCP\IServerContainer; use OCP\Share\IManager; use OCP\Share\IProviderFactory; @@ -141,7 +142,7 @@ protected function federatedShareProvider() { $this->serverContainer->query(\OCP\OCS\IDiscoveryService::class), $this->serverContainer->getJobList(), \OC::$server->getCloudFederationProviderManager(), - \OC::$server->getCloudFederationFactory(), + \OC::$server->get(ICloudFederationFactory::class), $this->serverContainer->query(IEventDispatcher::class), $this->serverContainer->get(LoggerInterface::class), );