Rollback to old yaml parser.

This commit is contained in:
Andrés Montañez
2014-01-11 15:39:22 -02:00
parent a3171c59dd
commit ff54ded172
16 changed files with 1050 additions and 1781 deletions
+1 -4
View File
@@ -23,11 +23,8 @@ class Autoload
*/
public static function autoload($className)
{
$isVendor = explode('\\', $className);
$isVendor = $isVendor[0] == 'Mage' ? false : true;
$baseDir = dirname(dirname(__FILE__));
$classFile = $baseDir . '/' . ($isVendor ? 'vendor/' : '') . str_replace(array('_', '\\'), '/', $className . '.php');
$classFile = $baseDir . '/' . str_replace(array('_', '\\'), '/', $className . '.php');
require_once $classFile;
}
+2 -2
View File
@@ -100,7 +100,7 @@ class Config
protected function loadGeneral()
{
if (file_exists('.mage/config/general.yml')) {
$this->config['general'] = Yaml::parse('.mage/config/general.yml');
$this->config['general'] = spyc_load_file('.mage/config/general.yml');
}
}
@@ -114,7 +114,7 @@ class Config
{
$environment = $this->getEnvironment();
if (($environment != false) && file_exists('.mage/config/environment/' . $environment . '.yml')) {
$this->config['environment'] = Yaml::parse('.mage/config/environment/' . $environment . '.yml');
$this->config['environment'] = spyc_load_file('.mage/config/environment/' . $environment . '.yml');
// Create temporal directory for clone
if (isset($this->config['environment']['deployment']['source']) && is_array($this->config['environment']['deployment']['source'])) {
+1046
View File
File diff suppressed because it is too large Load Diff