1
0
Fork 0

CleanUp Lock namespace

- introduce enum Lock - "Type"
- Move Lock/Lock to BaseLock
This commit is contained in:
Philipp Holzer 2020-01-18 20:15:46 +01:00
commit 41ff43dcdd
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
6 changed files with 33 additions and 21 deletions

View file

@ -2,6 +2,7 @@
namespace Friendica\Core\Lock;
use Friendica\Core\BaseLock;
use Friendica\Core\Cache\Duration;
use Friendica\Database\Database;
use Friendica\Util\DateTimeFormat;
@ -9,7 +10,7 @@ use Friendica\Util\DateTimeFormat;
/**
* Locking driver that stores the locks in the database
*/
class DatabaseLock extends Lock
class DatabaseLock extends BaseLock
{
/**
* The current ID of the process
@ -131,7 +132,7 @@ class DatabaseLock extends Lock
*/
public function getName()
{
return self::TYPE_DATABASE;
return Type::DATABASE;
}
/**