@@ 974-976 (lines=3) @@ | ||
971 | if (file_exists($config_yml)) { |
|
972 | $config = Yaml::parse(file_get_contents($config_yml)); |
|
973 | $config = empty($config) ? array() : $config; |
|
974 | if (isset($this['output_config_php']) && $this['output_config_php']) { |
|
975 | file_put_contents($config_php, sprintf('<?php return %s', var_export($config, true)).';'); |
|
976 | } |
|
977 | } |
|
978 | } else { |
|
979 | $config = require $config_php; |
|
@@ 988-990 (lines=3) @@ | ||
985 | $config_yml_dist = $distPath.'/'.$config_name.'.yml.dist'; |
|
986 | if (file_exists($config_yml_dist)) { |
|
987 | $config_dist = Yaml::parse(file_get_contents($config_yml_dist)); |
|
988 | if (isset($this['output_config_php']) && $this['output_config_php']) { |
|
989 | file_put_contents($config_php_dist, sprintf('<?php return %s', var_export($config_dist, true)).';'); |
|
990 | } |
|
991 | } |
|
992 | } else { |
|
993 | $config_dist = require $config_php_dist; |