allowing for PHP in YAML files to be parsed
This commit is contained in:
parent
5c3bea6584
commit
ff1316ebc9
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user