Skip to content
Snippets Groups Projects
Commit e5bc9d06 authored by Joas Schilling's avatar Joas Schilling
Browse files

Make it possible to import exportet app/system configs

parent 97106086
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,9 @@ class ListConfigs extends Base {
switch ($app) {
case 'system':
$configs = $this->getSystemConfigs($noSensitiveValues);
$configs = [
'system' => $this->getSystemConfigs($noSensitiveValues),
];
break;
case 'all':
......@@ -103,7 +105,11 @@ class ListConfigs extends Base {
break;
default:
$configs = $this->appConfig->getValues($app, false);
$configs = [
'apps' => [
$app => $this->appConfig->getValues($app, false),
],
];
}
$this->writeArrayInOutputFormat($input, $output, $configs);
......
......@@ -151,7 +151,9 @@ class ListConfigsTest extends TestCase {
],
true,
json_encode([
'overwrite.cli.url' => 'http://localhost',
'system' => [
'overwrite.cli.url' => 'http://localhost',
],
]),
],
[
......@@ -176,8 +178,10 @@ class ListConfigsTest extends TestCase {
],
false,
json_encode([
'secret' => 'my secret',
'overwrite.cli.url' => 'http://localhost',
'system' => [
'secret' => 'my secret',
'overwrite.cli.url' => 'http://localhost',
],
]),
],
[
......@@ -202,7 +206,11 @@ class ListConfigsTest extends TestCase {
],
true,
json_encode([
'enabled' => 'yes',
'apps' => [
'files' => [
'enabled' => 'yes',
],
],
]),
],
[
......@@ -227,7 +235,11 @@ class ListConfigsTest extends TestCase {
],
false,
json_encode([
'enabled' => 'yes',
'apps' => [
'files' => [
'enabled' => 'yes',
],
],
]),
],
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment