Fix usage
This commit is contained in:
parent
1901716479
commit
99239e3d99
3 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ HELP;
|
||||||
$this->out(sprintf($rowfmt, 'Sel', 'Name'));
|
$this->out(sprintf($rowfmt, 'Sel', 'Name'));
|
||||||
$this->out('-----------------------');
|
$this->out('-----------------------');
|
||||||
$isregisterd = false;
|
$isregisterd = false;
|
||||||
foreach ($this->storageManager->listBackends() as $name => $class) {
|
foreach ($this->storageManager->listBackends() as $name) {
|
||||||
$issel = ' ';
|
$issel = ' ';
|
||||||
if ($current && $current::getName() == $name) {
|
if ($current && $current::getName() == $name) {
|
||||||
$issel = '*';
|
$issel = '*';
|
||||||
|
|
|
@ -215,7 +215,7 @@ class StorageManager
|
||||||
/**
|
/**
|
||||||
* Get registered backends
|
* Get registered backends
|
||||||
*
|
*
|
||||||
* @return Storage\IWritableStorage[]
|
* @return string[]
|
||||||
*/
|
*/
|
||||||
public function listBackends(): array
|
public function listBackends(): array
|
||||||
{
|
{
|
||||||
|
|
|
@ -96,7 +96,7 @@ class Storage extends BaseAdmin
|
||||||
$current_storage_backend = DI::storage();
|
$current_storage_backend = DI::storage();
|
||||||
$available_storage_forms = [];
|
$available_storage_forms = [];
|
||||||
|
|
||||||
foreach (DI::storageManager()->listBackends() as $name => $class) {
|
foreach (DI::storageManager()->listBackends() as $name) {
|
||||||
|
|
||||||
// build storage config form,
|
// build storage config form,
|
||||||
$storage_form_prefix = preg_replace('|[^a-zA-Z0-9]|', '', $name);
|
$storage_form_prefix = preg_replace('|[^a-zA-Z0-9]|', '', $name);
|
||||||
|
|
Loading…
Reference in a new issue