aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-03-15 14:44:23 +0100
committerGitHub <noreply@github.com>2024-03-15 14:44:23 +0100
commit490533188b2b73b219c363a6245e2764864de96f (patch)
treea789aec3c2e21d8c9753b60ccfca54275214fcc0
parentf29fc47587356b005dd2a0f3cd043cab2945b007 (diff)
parentcd585885b83fef458e74b472b70683030da4ab93 (diff)
downloadnextcloud-server-490533188b2b73b219c363a6245e2764864de96f.tar.gz
nextcloud-server-490533188b2b73b219c363a6245e2764864de96f.zip
Merge pull request #40143 from summersab/refactor/OC-Server-getLockdownManager
-rw-r--r--lib/private/Server.php2
-rw-r--r--tests/lib/Lockdown/Filesystem/NoFSTest.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 76c73383b2e..a8b066263bc 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -546,7 +546,7 @@ class Server extends ServerContainer implements IServerContainer {
$provider,
$c->get(\OCP\IConfig::class),
$c->get(ISecureRandom::class),
- $c->getLockdownManager(),
+ $c->get('LockdownManager'),
$c->get(LoggerInterface::class),
$c->get(IEventDispatcher::class)
);
diff --git a/tests/lib/Lockdown/Filesystem/NoFSTest.php b/tests/lib/Lockdown/Filesystem/NoFSTest.php
index 4c0645447ec..adffb01758c 100644
--- a/tests/lib/Lockdown/Filesystem/NoFSTest.php
+++ b/tests/lib/Lockdown/Filesystem/NoFSTest.php
@@ -39,7 +39,7 @@ class NoFSTest extends \Test\TestCase {
$token->setScope([
'filesystem' => true
]);
- \OC::$server->getLockdownManager()->setToken($token);
+ \OC::$server->get('LockdownManager')->setToken($token);
parent::tearDown();
}
@@ -50,7 +50,7 @@ class NoFSTest extends \Test\TestCase {
'filesystem' => false
]);
- \OC::$server->getLockdownManager()->setToken($token);
+ \OC::$server->get('LockdownManager')->setToken($token);
$this->createUser('foo', 'var');
}