summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Util.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-02-23 18:11:46 +0100
committerRobin Appelman <robin@icewind.nl>2022-03-04 16:29:50 +0100
commit5c0fe934988960ece3ac71d5a1dfc8df405413aa (patch)
treea4b4cded5a1876ba58651f87a385df16c2460f63 /lib/private/legacy/OC_Util.php
parent15ff65c12fafbe1c4026fa6f734fb58fdbdcda11 (diff)
downloadnextcloud-server-5c0fe934988960ece3ac71d5a1dfc8df405413aa.tar.gz
nextcloud-server-5c0fe934988960ece3ac71d5a1dfc8df405413aa.zip
move teardown logic to SetupManager
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/legacy/OC_Util.php')
-rw-r--r--lib/private/legacy/OC_Util.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index 1d224ed460d..ceed79bc9d5 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -112,6 +112,7 @@ class OC_Util {
} else {
$setupManager->setupRoot();
}
+ return true;
}
/**
@@ -264,10 +265,9 @@ class OC_Util {
* @suppress PhanUndeclaredMethod
*/
public static function tearDownFS() {
- \OC\Files\Filesystem::tearDown();
- \OC::$server->getRootFolder()->clearCache();
- self::$fsSetup = false;
- self::$rootFsSetup = false;
+ /** @var SetupManager $setupManager */
+ $setupManager = \OC::$server->get(SetupManager::class);
+ $setupManager->tearDown();
}
/**