|
@@ 935-937 (lines=3) @@
|
| 932 |
|
if (file_exists($config_yml)) { |
| 933 |
|
$config = Yaml::parse(file_get_contents($config_yml)); |
| 934 |
|
$config = empty($config) ? array() : $config; |
| 935 |
|
if (isset($this['output_config_php']) && $this['output_config_php']) { |
| 936 |
|
file_put_contents($config_php, sprintf('<?php return %s', var_export($config, true)).';'); |
| 937 |
|
} |
| 938 |
|
} |
| 939 |
|
} else { |
| 940 |
|
$config = require $config_php; |
|
@@ 955-957 (lines=3) @@
|
| 952 |
|
$config_yml_dist = $distPath.'/'.$config_name.'.yml.dist'; |
| 953 |
|
if (file_exists($config_yml_dist)) { |
| 954 |
|
$config_dist = Yaml::parse(file_get_contents($config_yml_dist)); |
| 955 |
|
if (isset($this['output_config_php']) && $this['output_config_php']) { |
| 956 |
|
file_put_contents($config_php_dist, sprintf('<?php return %s', var_export($config_dist, true)).';'); |
| 957 |
|
} |
| 958 |
|
} |
| 959 |
|
} else { |
| 960 |
|
$config_dist = require $config_php_dist; |