src/FakerFactory.php
/**
     * Extracts provider class name, method and parameters
     *
     * @param $providerConfig
     * @return ProviderProxy
     */
Extracts provider class name, method and parameters
@param $providerConfig
@return ProviderProxy
Extracts provider class name method and parameters @param $providerConfig @return ProviderProxy
protected static function extractProvider($providerConfig)
    {
        $providerName = $providerConfig['provider'];
        if (strpos($providerName, '/') !== false) {
            $providerSplitName = explode('/', $providerName);
            $locale = $providerSplitName[0];
            $providerName = $providerSplitName[1];
        } else {
            $locale = self::DEFAULT_LOCALE;
        }
        $providerSplitName = explode('::', $providerName);
        $providerName = $providerSplitName[0];
        $providerFunction = $providerSplitName[1];
        $providerClassName = self::getProviderClassname($providerName, $locale);
        unset($providerConfig['provider']);
        $providerProxy = new ProviderProxy($providerClassName, $providerFunction, $providerConfig);
        return $providerProxy;
    }
protected static function extractProvider ( $ providerConfig ) { $ providerName = $ providerConfig [ 'provider' ] ; if ( strpos ( $ providerName , '/' ) !== false ) { $ providerSplitName = explode ( '/' , $ providerName ) ; $ locale = $ providerSplitName [ 0 ] ; $ providerName = $ providerSplitName [ 1 ] ; } else { $ locale = self :: DEFAULT_LOCALE ; } $ providerSplitName = explode ( '::' , $ providerName ) ; $ providerName = $ providerSplitName [ 0 ] ; $ providerFunction = $ providerSplitName [ 1 ] ; $ providerClassName = self :: getProviderClassname ( $ providerName , $ locale ) ; unset ( $ providerConfig [ 'provider' ] ) ; $ providerProxy = new ProviderProxy ( $ providerClassName , $ providerFunction , $ providerConfig ) ; return $ providerProxy ; }
Extracts provider class name, method and parameters
 @param $providerConfig
 @return ProviderProxy
Extracts provider class name method and parameters @param $providerConfig @return ProviderProxy
//extracts locale //extracts class and method name //finds the full provider class name //provider name is defined in the same array with parameters //$providerConfig should contain only parameters that will be passed to method //creates provider proxy