1
0
mirror of synced 2025-01-31 04:21:44 +03:00

allowing for PHP in YAML files to be parsed

This commit is contained in:
pookey 2007-10-07 16:21:04 +00:00
parent 5c3bea6584
commit ff1316ebc9

View File

@ -66,9 +66,13 @@ class Doctrine_Parser_Yml extends Doctrine_Parser
*/
public function loadData($path)
{
ob_start();
$retval = include($path);
$contents = ob_get_clean();
$spyc = new DoctrineSpyc();
$array = $spyc->load($path);
$array = $spyc->load($contents);
return $array;
}