Skip to content

Commit

Permalink
Refactor OC\Server::getLockdownManager
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
  • Loading branch information
summersab committed Aug 30, 2023
1 parent 9d1547f commit 9068ad5
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 @@ -523,7 +523,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 9068ad5

Please sign in to comment.