Moved Lock.php back to Utils
This commit is contained in:
parent
2260b9c873
commit
a57e6cfa1b
|
@ -11,6 +11,7 @@ use Friendica\Database\DBM;
|
|||
use Friendica\Model\Process;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\Lock;
|
||||
use dba;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
|
|
|
@ -19,6 +19,7 @@ use Friendica\Model\User;
|
|||
use Friendica\Network\Probe;
|
||||
use Friendica\Object\Image;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Lock;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\XML;
|
||||
use dba;
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Friendica\Util;
|
|||
*/
|
||||
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Lock;
|
||||
use Friendica\Util\Lock;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
|
||||
|
@ -94,4 +94,9 @@ class Lock
|
|||
{
|
||||
self::getDriver()->releaseAll();
|
||||
}
|
||||
|
||||
public static function isLocked($key)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Core\Lock;
|
||||
namespace Friendica\Util\Lock;
|
||||
|
||||
use dba;
|
||||
use Friendica\Database\DBM;
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Core\Lock;
|
||||
namespace Friendica\Util\Lock;
|
||||
|
||||
/**
|
||||
* Lock Driver Interface
|
||||
|
@ -35,4 +35,7 @@ interface ILockDriver
|
|||
* @return void
|
||||
*/
|
||||
public function releaseAll();
|
||||
|
||||
|
||||
public function isLocked();
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Core\Lock;
|
||||
namespace Friendica\Util\Lock;
|
||||
|
||||
use Friendica\Core\Cache;
|
||||
use dba;
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Core\Lock;
|
||||
namespace Friendica\Util\Lock;
|
||||
|
||||
class SemaphoreLockDriver implements ILockDriver
|
||||
{
|
Loading…
Reference in a new issue