mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-13 04:30: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:
parent
949750fc1e
commit
565078a7f8
@ -10,21 +10,21 @@ class Mage_Config
|
|||||||
public function loadEnvironment($environment)
|
public function loadEnvironment($environment)
|
||||||
{
|
{
|
||||||
if (($environment != '') && file_exists('.mage/config/environment/' . $environment . '.yml')) {
|
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()
|
public function loadSCM()
|
||||||
{
|
{
|
||||||
if (file_exists('.mage/config/scm.yml')) {
|
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()
|
public function loadGeneral()
|
||||||
{
|
{
|
||||||
if (file_exists('.mage/config/general.yml')) {
|
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
1046
Mage/spyc.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -26,6 +26,7 @@ $baseDir = dirname(dirname(__FILE__));
|
|||||||
|
|
||||||
define('MAGALLANES_VERSION', '0.9.2');
|
define('MAGALLANES_VERSION', '0.9.2');
|
||||||
|
|
||||||
|
require_once $baseDir . '/Mage/spyc.php';
|
||||||
require_once $baseDir . '/Mage/Autoload.php';
|
require_once $baseDir . '/Mage/Autoload.php';
|
||||||
spl_autoload_register(array('Mage_Autoload', 'autoload'));
|
spl_autoload_register(array('Mage_Autoload', 'autoload'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user