Commit ff1316eb authored by pookey's avatar pookey

allowing for PHP in YAML files to be parsed

parent 5c3bea65
...@@ -66,9 +66,13 @@ class Doctrine_Parser_Yml extends Doctrine_Parser ...@@ -66,9 +66,13 @@ class Doctrine_Parser_Yml extends Doctrine_Parser
*/ */
public function loadData($path) public function loadData($path)
{ {
ob_start();
$retval = include($path);
$contents = ob_get_clean();
$spyc = new DoctrineSpyc(); $spyc = new DoctrineSpyc();
$array = $spyc->load($path); $array = $spyc->load($contents);
return $array; return $array;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment