]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Storage.php
Increase cache lifespan / clear cache upon changes
[friendica.git] / src / Console / Storage.php
index e2aa185c9229a305f33cfc72c8461bda8b0a823e..d5af7c51356ece6e33f3f1e0ed1e429544050720 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,9 +22,9 @@
 namespace Friendica\Console;
 
 use Asika\SimpleConsole\CommandArgsException;
-use Friendica\Core\StorageManager;
-use Friendica\Model\Storage\ReferenceStorageException;
-use Friendica\Model\Storage\StorageException;
+use Friendica\Core\Storage\Repository\StorageManager;
+use Friendica\Core\Storage\Exception\ReferenceStorageException;
+use Friendica\Core\Storage\Exception\StorageException;
 
 /**
  * tool to manage storage backend and stored data from CLI
@@ -106,7 +106,7 @@ HELP;
                $this->out(sprintf($rowfmt, 'Sel', 'Name'));
                $this->out('-----------------------');
                $isregisterd = false;
-               foreach ($this->storageManager->listBackends() as $name => $class) {
+               foreach ($this->storageManager->listBackends() as $name) {
                        $issel = ' ';
                        if ($current && $current::getName() == $name) {
                                $issel = '*';