ApplicationConfigForm: Remove loop and simplify the code
This commit is contained in:
parent
41a23c3eb3
commit
09d378ab65
|
@ -70,10 +70,8 @@ class ApplicationConfigForm extends Form
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$backends = array();
|
$backends = array_keys(ResourceFactory::getResourceConfigs()->toArray());
|
||||||
foreach (ResourceFactory::getResourceConfigs()->toArray() as $name => $resource) {
|
$backends = array_combine($backends, $backends);
|
||||||
$backends[$name] = $name;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'select',
|
'select',
|
||||||
|
|
Loading…
Reference in New Issue