mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Adjusted YamlFixture to new Spyc API: loadFile() instead of load() (from r92566)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@93579 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2e2b532e23
commit
fad4957687
@ -146,7 +146,8 @@ class YamlFixture extends Object {
|
|||||||
DataObject::set_validation_enabled(false);
|
DataObject::set_validation_enabled(false);
|
||||||
|
|
||||||
$parser = new Spyc();
|
$parser = new Spyc();
|
||||||
$fixtureContent = $parser->load(Director::baseFolder().'/'.$this->fixtureFile);
|
$fixtureContent = $parser->loadFile(Director::baseFolder().'/'.$this->fixtureFile);
|
||||||
|
|
||||||
$this->fixtureDictionary = array();
|
$this->fixtureDictionary = array();
|
||||||
foreach($fixtureContent as $dataClass => $items) {
|
foreach($fixtureContent as $dataClass => $items) {
|
||||||
if(ClassInfo::exists($dataClass)) {
|
if(ClassInfo::exists($dataClass)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user