Refactor IStorage

This commit is contained in:
Philipp 2021-08-01 14:00:48 +02:00
parent 5dcdf2322e
commit 29c7552df5
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
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;
}