mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:10:15 +00:00
Refactor IStorage
This commit is contained in:
parent
5dcdf2322e
commit
29c7552df5
11 changed files with 121 additions and 55 deletions
|
@ -131,10 +131,10 @@ HELP;
|
|||
throw new CommandArgsException('Invalid arguments');
|
||||
}
|
||||
|
||||
$name = $this->args[1];
|
||||
$class = $this->storageManager->getByName($name);
|
||||
$name = $this->args[1];
|
||||
$class = $this->storageManager->getSelectableStorageByName($name);
|
||||
|
||||
if ($class === '') {
|
||||
if (is_null($class)) {
|
||||
$this->out($name . ' is not a registered backend.');
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue