diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-09-29 20:57:00 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-12-07 22:04:07 +0100 |
commit | 001648037055985cc10f38d6ba1e0e71cac49af7 (patch) | |
tree | 9f4cf10544421a7a337e9d26a86cbc8aedabe65b /apps | |
parent | 2959487f71c8226036ac3614bce27e3bbe60418a (diff) | |
download | nextcloud-server-001648037055985cc10f38d6ba1e0e71cac49af7.tar.gz nextcloud-server-001648037055985cc10f38d6ba1e0e71cac49af7.zip |
Decouple resource provider registration
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/AppInfo/Application.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/lib/AppInfo/Application.php b/apps/files/lib/AppInfo/Application.php index afd9f788749..b8770caa4aa 100644 --- a/apps/files/lib/AppInfo/Application.php +++ b/apps/files/lib/AppInfo/Application.php @@ -41,7 +41,7 @@ use OCA\Files\Listener\LoadSidebarListener; use OCA\Files\Notification\Notifier; use OCA\Files\Service\TagService; use OCP\AppFramework\App; -use OCP\Collaboration\Resources\IManager; +use OCP\Collaboration\Resources\IProviderManager; use OCP\EventDispatcher\IEventDispatcher; use OCP\IContainer; @@ -92,9 +92,9 @@ class Application extends App { /** * Register Collaboration ResourceProvider */ - /** @var IManager $resourceManager */ - $resourceManager = $container->query(IManager::class); - $resourceManager->registerResourceProvider(ResourceProvider::class); + /** @var IProviderManager $providerManager */ + $providerManager = $container->query(IProviderManager::class); + $providerManager->registerResourceProvider(ResourceProvider::class); Listener::register($server->getEventDispatcher()); /** @var IEventDispatcher $dispatcher */ |