diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-01-24 11:43:18 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 20:56:17 +0100 |
commit | d85e3e3a6d775261cd4a504e07b111224cda8fc8 (patch) | |
tree | ae4a15f565ea0f819b9f92a54f1c34b05d7e85c2 /apps | |
parent | 88aa3de7842a5113de5f137ba57bdae1f77777b5 (diff) | |
download | nextcloud-server-d85e3e3a6d775261cd4a504e07b111224cda8fc8.tar.gz nextcloud-server-d85e3e3a6d775261cd4a504e07b111224cda8fc8.zip |
Allow apps to register resource providers
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/AppInfo/Application.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files/lib/AppInfo/Application.php b/apps/files/lib/AppInfo/Application.php index d4dac5befa8..8f8c1e299b5 100644 --- a/apps/files/lib/AppInfo/Application.php +++ b/apps/files/lib/AppInfo/Application.php @@ -27,9 +27,11 @@ namespace OCA\Files\AppInfo; use OCA\Files\Activity\Helper; +use OCA\Files\Collaboration\Resources\ResourceProvider; use OCA\Files\Controller\ApiController; use OCP\AppFramework\App; use \OCA\Files\Service\TagService; +use OCP\Collaboration\Resources\IManager; use \OCP\IContainer; use OCA\Files\Controller\ViewController; use OCA\Files\Capabilities; @@ -99,5 +101,12 @@ class Application extends App { * Register capabilities */ $container->registerCapability(Capabilities::class); + + /** + * Register Collaboration ResourceProvider + */ + /** @var IManager $resourceManager */ + $resourceManager = $container->query(IManager::class); + $resourceManager->registerResourceProvider($container->query(ResourceProvider::class)); } } |