propel-bundle/DataFixtures/YamlDataLoader.php
2011-09-02 15:51:07 +02:00

29 lines
579 B
PHP

<?php
/**
* This file is part of the PropelBundle package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Propel\PropelBundle\DataFixtures;
use Symfony\Component\Yaml\Yaml;
/**
* YAML fixtures loader.
*
* @author William Durand <william.durand1@gmail.com>
*/
class YamlDataLoader extends AbstractDataLoader
{
/**
* {@inheritdoc}
*/
protected function transformDataToArray($file)
{
return Yaml::parse($file);
}
}