1
0
Fork 0

Fix bug for scripts for config command

pull/7225/head
闫兴茂 2018-03-30 14:24:04 +08:00
parent c2fbbe3b86
commit 491ae0634a
1 changed files with 9 additions and 0 deletions

View File

@ -612,6 +612,15 @@ EOT
return;
}
// handle script
if (preg_match('/^scripts\.(.+)/', $settingKey,$matches)){
if ($input->getOption('unset')) {
return $this->configSource->removeConfigSetting($settingKey);
}
return $this->configSource->addConfigSetting($settingKey, $values[0]);
}
throw new \InvalidArgumentException('Setting '.$settingKey.' does not exist or is not supported by this command');
}