|
@@ 68-71 (lines=4) @@
|
| 65 |
|
$configName = $configNames[0]; |
| 66 |
|
|
| 67 |
|
if (\sizeof($configNames) > 1) { |
| 68 |
|
if ($input->hasParameterOption('--error-if-not-exists') && !\in_array($configName, $this->systemConfig->getKeys())) { |
| 69 |
|
$output->writeln('<error>System config ' . \implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>'); |
| 70 |
|
return 1; |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
$value = $this->systemConfig->getValue($configName); |
| 74 |
|
|
|
@@ 86-89 (lines=4) @@
|
| 83 |
|
$output->writeln('<info>System config value ' . \implode(' => ', $configNames) . ' deleted</info>'); |
| 84 |
|
return 0; |
| 85 |
|
} else { |
| 86 |
|
if ($input->hasParameterOption('--error-if-not-exists') && !\in_array($configName, $this->systemConfig->getKeys())) { |
| 87 |
|
$output->writeln('<error>System config ' . $configName . ' could not be deleted because it did not exist</error>'); |
| 88 |
|
return 1; |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
$this->systemConfig->deleteValue($configName); |
| 92 |
|
$output->writeln('<info>System config value ' . $configName . ' deleted</info>'); |