summaryrefslogtreecommitdiffstats
path: root/apps/files_external/appinfo
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-01-13 15:29:53 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-20 16:32:56 +0100
commit483c6b68e2797a4608f5ff519ba961facdf8e9e4 (patch)
treed804635a0969b2431dfe4b1418bc8412ebab7880 /apps/files_external/appinfo
parentbc7bd0cd0532b8309d317c23ee4f13106e0a0e1d (diff)
downloadnextcloud-server-483c6b68e2797a4608f5ff519ba961facdf8e9e4.tar.gz
nextcloud-server-483c6b68e2797a4608f5ff519ba961facdf8e9e4.zip
clear mount cache when removing applicables
Diffstat (limited to 'apps/files_external/appinfo')
-rw-r--r--apps/files_external/appinfo/application.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_external/appinfo/application.php b/apps/files_external/appinfo/application.php
index 0c8b90935d3..c755b6a29b0 100644
--- a/apps/files_external/appinfo/application.php
+++ b/apps/files_external/appinfo/application.php
@@ -26,6 +26,7 @@
namespace OCA\Files_External\AppInfo;
use \OCP\AppFramework\App;
+use OCP\AppFramework\IAppContainer;
use \OCP\IContainer;
use \OCA\Files_External\Service\BackendService;
@@ -33,9 +34,13 @@ use \OCA\Files_External\Service\BackendService;
* @package OCA\Files_External\Appinfo
*/
class Application extends App {
- public function __construct(array $urlParams=array()) {
+ public function __construct(array $urlParams = array()) {
parent::__construct('files_external', $urlParams);
+ $this->getContainer()->registerService('OCP\Files\Config\IUserMountCache', function (IAppContainer $c) {
+ return $c->getServer()->query('UserMountCache');
+ });
+
$this->loadBackends();
$this->loadAuthMechanisms();