|
@@ 1028-1030 (lines=3) @@
|
| 1025 |
|
if (file_exists($config_yml)) { |
| 1026 |
|
$config = Yaml::parse(file_get_contents($config_yml)); |
| 1027 |
|
$config = empty($config) ? array() : $config; |
| 1028 |
|
if (isset($this['output_config_php']) && $this['output_config_php']) { |
| 1029 |
|
file_put_contents($config_php, sprintf('<?php return %s', var_export($config, true)).';'); |
| 1030 |
|
} |
| 1031 |
|
} |
| 1032 |
|
} else { |
| 1033 |
|
$config = require $config_php; |
|
@@ 1042-1044 (lines=3) @@
|
| 1039 |
|
$config_yml_dist = $distPath.'/'.$config_name.'.yml.dist'; |
| 1040 |
|
if (file_exists($config_yml_dist)) { |
| 1041 |
|
$config_dist = Yaml::parse(file_get_contents($config_yml_dist)); |
| 1042 |
|
if (isset($this['output_config_php']) && $this['output_config_php']) { |
| 1043 |
|
file_put_contents($config_php_dist, sprintf('<?php return %s', var_export($config_dist, true)).';'); |
| 1044 |
|
} |
| 1045 |
|
} |
| 1046 |
|
} else { |
| 1047 |
|
$config_dist = require $config_php_dist; |