CleanUp Lock namespace

- introduce enum Lock - "Type"
- Move Lock/Lock to BaseLock
This commit is contained in:
nupplaPhil
2020-01-18 20:15:46 +01:00
parent c742c62f0a
commit 41ff43dcdd
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;
}
/**