Pretty print options for Config JSON

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-04 17:29:15 +01:00
parent a964c0e3ec
commit 76fcad92b3

View File

@ -126,7 +126,7 @@ class Config{
$content = $this->writeProperties();
break;
case CONFIG_JSON:
$content = json_encode($this->config);
$content = json_encode($this->config, JSON_PRETTY_PRINT | JSON_BIGINT_AS_STRING);
break;
case CONFIG_YAML:
$content = Spyc::YAMLDump($this->config);