summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Lock
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-04-06 17:47:45 +0200
committerJulius Härtl <jus@bitgrid.net>2022-04-07 11:52:16 +0200
commit9b408d556d32ea81883e1f6a61a821e1959025e6 (patch)
treea1229f2fccf12dc50e30ce7a39d15352a6f1434e /lib/private/Files/Lock
parent40f1ad60c245bfe35998b718aab2fe0f726f3798 (diff)
downloadnextcloud-server-9b408d556d32ea81883e1f6a61a821e1959025e6.tar.gz
nextcloud-server-9b408d556d32ea81883e1f6a61a821e1959025e6.zip
Adapt LockScope to LockContext rename
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Files/Lock')
-rw-r--r--lib/private/Files/Lock/LockManager.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/Files/Lock/LockManager.php b/lib/private/Files/Lock/LockManager.php
index 59022613fdb..e2af532a01c 100644
--- a/lib/private/Files/Lock/LockManager.php
+++ b/lib/private/Files/Lock/LockManager.php
@@ -5,12 +5,12 @@ namespace OC\Files\Lock;
use OCP\Files\Lock\ILock;
use OCP\Files\Lock\ILockManager;
use OCP\Files\Lock\ILockProvider;
-use OCP\Files\Lock\LockScope;
+use OCP\Files\Lock\LockContext;
use OCP\PreConditionNotMetException;
class LockManager implements ILockManager {
private ?ILockProvider $lockProvider = null;
- private ?LockScope $lockInScope = null;
+ private ?LockContext $lockInScope = null;
public function registerLockProvider(ILockProvider $lockProvider): void {
if ($this->lockProvider) {
@@ -24,7 +24,7 @@ class LockManager implements ILockManager {
return $this->lockProvider !== null;
}
- public function runInScope(LockScope $lock, callable $callback): void {
+ public function runInScope(LockContext $lock, callable $callback): void {
if (!$this->lockProvider) {
$callback();
return;
@@ -42,7 +42,7 @@ class LockManager implements ILockManager {
}
}
- public function getLockInScope(): ?LockScope {
+ public function getLockInScope(): ?LockContext {
return $this->lockInScope;
}
@@ -54,7 +54,7 @@ class LockManager implements ILockManager {
return $this->lockProvider->getLocks($fileId);
}
- public function lock(LockScope $lockInfo): ILock {
+ public function lock(LockContext $lockInfo): ILock {
if (!$this->lockProvider) {
throw new PreConditionNotMetException('No lock provider available');
}
@@ -62,7 +62,7 @@ class LockManager implements ILockManager {
return $this->lockProvider->lock($lockInfo);
}
- public function unlock(LockScope $lockInfo): void {
+ public function unlock(LockContext $lockInfo): void {
if (!$this->lockProvider) {
throw new PreConditionNotMetException('No lock provider available');
}