mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +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:
+3
-3
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user