Skip to content

Commit

Permalink
Merge pull request #40143 from summersab/refactor/OC-Server-getLockdo…
Browse files Browse the repository at this point in the history
…wnManager
  • Loading branch information
skjnldsv authored Mar 15, 2024
2 parents f29fc47 + cd58588 commit 4905331
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ public function __construct($webRoot, \OC\Config $config) {
$provider,
$c->get(\OCP\IConfig::class),
$c->get(ISecureRandom::class),
$c->getLockdownManager(),
$c->get('LockdownManager'),
$c->get(LoggerInterface::class),
$c->get(IEventDispatcher::class)
);
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/Lockdown/Filesystem/NoFSTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function tearDown(): void {
$token->setScope([
'filesystem' => true
]);
\OC::$server->getLockdownManager()->setToken($token);
\OC::$server->get('LockdownManager')->setToken($token);
parent::tearDown();
}

Expand All @@ -50,7 +50,7 @@ protected function setUp(): void {
'filesystem' => false
]);

\OC::$server->getLockdownManager()->setToken($token);
\OC::$server->get('LockdownManager')->setToken($token);
$this->createUser('foo', 'var');
}

Expand Down

0 comments on commit 4905331

Please sign in to comment.