for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebnetFr\DatabaseAnonymizer\Config;
use Symfony\Component\Config\Loader\FileLoader;
use Symfony\Component\Yaml\Yaml;
/**
* @author Vlad Riabchenko <[email protected]>
*/
class YamlAnonymizerLoader extends FileLoader
{
* {@inheritdoc}
public function load($resource, $type = null)
return Yaml::parse(file_get_contents($resource));
}
public function supports($resource, $type = null)
return \is_string($resource) && 'yaml' === pathinfo($resource, PATHINFO_EXTENSION);