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());
    }
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());
    }
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 ( ) ) ; }
Bootstrap function for Fakerino,
setups the global configuration.

@param null|array|string $conf

@return FakeDataFactory
Bootstrap function for Fakerino setups the global configuration .