]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Lock.php
Remove deprecated code
[friendica.git] / src / Console / Lock.php
index 46826cc8c92a384981daef2c055b5e11ccc0af0a..2ab383c1e3dc1fce6b29e5d9bf23eb26ff7c2718 100644 (file)
@@ -8,7 +8,7 @@ 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.
@@ -133,7 +133,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 +156,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) {