public static function create($conf = null)
{
self::$defaultConf = new FakerinoConf();
self::$defaultConf->loadConfiguration();
if ($conf !== null) {
$confArray = $conf;
if (!is_array($conf)) {
$confTypeFactory = new FileConfigurationLoaderFactory($conf);
$confParser = $confTypeFactory->load();
$confArray = $confParser->toArray();
}
$conf = $confArray;
}
self::$defaultConf = new FakerinoConf($conf);
self::$defaultConf->loadConfiguration();
return new FakeDataFactory(self::getDefaultHandler(), new DoctrineLayer(self::getDatabaseConfig()), new TwigTemplate());
}