Refactor IStorage

This commit is contained in:
Philipp
2021-08-01 14:00:48 +02:00
parent 5dcdf2322e
commit 29c7552df5
11 changed files with 121 additions and 55 deletions

View File

@@ -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;
}