diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-09-22 17:25:33 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2023-09-22 17:26:02 -0100 |
commit | 0fac750bcd5eccc65f2861a3bb7633912fb30039 (patch) | |
tree | ab6497eca13125d5e579bc77b2315bf727506589 /lib/private/Server.php | |
parent | 0acad69840ff21a103f532548907e480fc5a982a (diff) | |
download | nextcloud-server-0fac750bcd5eccc65f2861a3bb7633912fb30039.tar.gz nextcloud-server-0fac750bcd5eccc65f2861a3bb7633912fb30039.zip |
ocm services
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 2d2f2cd9a9b..5bcb9ada9f5 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -125,6 +125,7 @@ use OC\Metadata\Capabilities as MetadataCapabilities; use OC\Metadata\IMetadataManager; use OC\Metadata\MetadataManager; use OC\Notification\Manager; +use OC\OCM\OCMDiscoveryService; use OC\OCS\DiscoveryService; use OC\Preview\GeneratorHelper; use OC\Preview\IMagickSupport; @@ -235,6 +236,7 @@ use OCP\Lock\ILockingProvider; use OCP\Lockdown\ILockdownManager; use OCP\Log\ILogFactory; use OCP\Mail\IMailer; +use OCP\OCM\IOCMDiscoveryService; use OCP\Remote\Api\IApiFactory; use OCP\Remote\IInstanceFactory; use OCP\RichObjectStrings\IValidator; @@ -1371,6 +1373,7 @@ class Server extends ServerContainer implements IServerContainer { $c->get(IClientService::class) ); }); + $this->registerAlias(IOCMDiscoveryService::class, OCMDiscoveryService::class); $this->registerService(ICloudIdManager::class, function (ContainerInterface $c) { return new CloudIdManager( @@ -1386,9 +1389,11 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService(ICloudFederationProviderManager::class, function (ContainerInterface $c) { return new CloudFederationProviderManager( + $c->get(\OCP\IConfig::class), $c->get(IAppManager::class), $c->get(IClientService::class), $c->get(ICloudIdManager::class), + $c->get(IOCMDiscoveryService::class), $c->get(LoggerInterface::class) ); }); |