1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-08-26 05:10:17 +02:00

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

Now we don't need the pecl!
This commit is contained in:
Andrs Montaez 2012-02-14 20:46:34 -02:00
parent 949750fc1e
commit 565078a7f8
3 changed files with 1050 additions and 3 deletions

View File

@ -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 Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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'));