diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2019-12-09 09:51:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-09 09:51:25 +0100 |
commit | 8bc4295cfad1ba65bad3c7c06af1f4a16b9bcba5 (patch) | |
tree | 02d26db9536e8e3aac89247fc919420d1c62fbdf /apps | |
parent | fca2e588b9ffb3e20dfa018d603b4231b232ccfd (diff) | |
parent | 001648037055985cc10f38d6ba1e0e71cac49af7 (diff) | |
download | nextcloud-server-8bc4295cfad1ba65bad3c7c06af1f4a16b9bcba5.tar.gz nextcloud-server-8bc4295cfad1ba65bad3c7c06af1f4a16b9bcba5.zip |
Merge pull request #17325 from nextcloud/enh/decouple-register-resource-provider
Decouple resource provider registration
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 */ |