CleanUp Lock namespace
- introduce enum Lock - "Type" - Move Lock/Lock to BaseLock
This commit is contained in:
parent
c742c62f0a
commit
41ff43dcdd
6 changed files with 33 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue