X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FLock.php;h=d645800379f9b1d10f1b44670d58abdc9aca340d;hb=ab5a447bc2261522d0f5560f8933dd928a6fc6e3;hp=46826cc8c92a384981daef2c055b5e11ccc0af0a;hpb=f1e7d97b8cae93e1c77f5a5085880409b01fcdbe;p=friendica.git diff --git a/src/Console/Lock.php b/src/Console/Lock.php index 46826cc8c9..d645800379 100644 --- a/src/Console/Lock.php +++ b/src/Console/Lock.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -8,12 +27,10 @@ use Friendica\Core\Lock\ILock; use RuntimeException; /** - * @brief tool to access the locks from the CLI + * tool to access the locks from the CLI * * With this script you can access the locks of your node from the CLI. * You can read current locks and set/remove locks. - * - * @author Philipp Holzer , Hypolite Petovan */ class Lock extends \Asika\SimpleConsole\Console { @@ -133,7 +150,7 @@ HELP; if (count($this->args) >= 2) { $lock = $this->getArgument(1); - if ($this->lock->releaseLock($lock, true)) { + if ($this->lock->release($lock, true)) { $this->out(sprintf('Lock \'%s\' released.', $lock)); } else { $this->out(sprintf('Couldn\'t release Lock \'%s\'', $lock)); @@ -156,11 +173,11 @@ HELP; } if (!empty($ttl) && !empty($timeout)) { - $result = $this->lock->acquireLock($lock, $timeout, $ttl); + $result = $this->lock->acquire($lock, $timeout, $ttl); } elseif (!empty($timeout)) { - $result = $this->lock->acquireLock($lock, $timeout); + $result = $this->lock->acquire($lock, $timeout); } else { - $result = $this->lock->acquireLock($lock); + $result = $this->lock->acquire($lock); } if ($result) {