Remove SPYC library for Yamls and use Symfony/Component/Yaml instead.

This commit is contained in:
Andrés Montañez
2013-12-19 16:27:53 -02:00
parent 72a1a19518
commit d6e7e5b6ab
16 changed files with 1769 additions and 1050 deletions
+3 -2
View File
@@ -10,6 +10,7 @@
namespace Mage;
use Symfony\Component\Yaml\Yaml;
use Exception;
/**
@@ -99,7 +100,7 @@ class Config
protected function loadGeneral()
{
if (file_exists('.mage/config/general.yml')) {
$this->config['general'] = spyc_load_file('.mage/config/general.yml');
$this->config['general'] = Yaml::parse('.mage/config/general.yml');
}
}
@@ -113,7 +114,7 @@ class Config
{
$environment = $this->getEnvironment();
if (($environment != false) && file_exists('.mage/config/environment/' . $environment . '.yml')) {
$this->config['environment'] = spyc_load_file('.mage/config/environment/' . $environment . '.yml');
$this->config['environment'] = Yaml::parse('.mage/config/environment/' . $environment . '.yml');
// Create temporal directory for clone
if (isset($this->config['environment']['deployment']['source']) && is_array($this->config['environment']['deployment']['source'])) {