Remove json handling for files_external:config

#4347
This commit is contained in:
Ardinis 2017-04-14 15:42:45 +02:00 committed by GitHub
parent f40b9fa9bd
commit 3db84ed90a
1 changed files with 0 additions and 7 deletions

View File

@ -91,9 +91,6 @@ class Config extends Base {
} else {
$value = $mount->getBackendOption($key);
}
if (!is_string($value)) { // show bools and objects correctly
$value = json_encode($value);
}
$output->writeln($value);
}
@ -104,10 +101,6 @@ class Config extends Base {
* @param OutputInterface $output
*/
protected function setOption(StorageConfig $mount, $key, $value, OutputInterface $output) {
$decoded = json_decode($value, true);
if (!is_null($decoded)) {
$value = $decoded;
}
if ($key === 'mountpoint' || $key === 'mount_point') {
$mount->setMountPoint($value);
} else {