Browse Source

Replaces peck library for yaml parsing for SPYC library (pure php).

Now we don't need the pecl!
1.0
Andrs Montaez 13 years ago
parent
commit
565078a7f8
  1. 6
      Mage/Config.php
  2. 1046
      Mage/spyc.php
  3. 1
      bin/mage.php

6
Mage/Config.php

@ -10,21 +10,21 @@ class Mage_Config
public function loadEnvironment($environment)
{
if (($environment != '') && file_exists('.mage/config/environment/' . $environment . '.yml')) {
$this->_environment = @yaml_parse_file('.mage/config/environment/' . $environment . '.yml');
$this->_environment = spyc_load_file('.mage/config/environment/' . $environment . '.yml');
}
}
public function loadSCM()
{
if (file_exists('.mage/config/scm.yml')) {
$this->_scm = @yaml_parse_file('.mage/config/scm.yml');
$this->_scm = spyc_load_file('.mage/config/scm.yml');
}
}
public function loadGeneral()
{
if (file_exists('.mage/config/general.yml')) {
$this->_general = @yaml_parse_file('.mage/config/general.yml');
$this->_general = spyc_load_file('.mage/config/general.yml');
}
}

1046
Mage/spyc.php

File diff suppressed because it is too large Load Diff

1
bin/mage.php

@ -26,6 +26,7 @@ $baseDir = dirname(dirname(__FILE__));
define('MAGALLANES_VERSION', '0.9.2');
require_once $baseDir . '/Mage/spyc.php';
require_once $baseDir . '/Mage/Autoload.php';
spl_autoload_register(array('Mage_Autoload', 'autoload'));

Loading…
Cancel
Save