1
0
Fork 0

Fixing force-flag for lock-releasing

This commit is contained in:
Philipp Holzer 2019-02-24 10:08:28 +01:00
commit 9b07132b80
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
6 changed files with 23 additions and 11 deletions

View file

@ -33,11 +33,12 @@ interface ILockDriver
/**
* Releases a lock if it was set by us
*
* @param string $key The Name of the lock
* @param string $key The Name of the lock
* @param bool $force Force the lock to get released
*
* @return void
*/
public function releaseLock($key);
public function releaseLock($key, $force = false);
/**
* Releases all lock that were set by us