private function loadFactories($factoriesPath)
    {
        $factoriesPath = $factoriesPath ?: static::$factoriesPath;

        if ( ! static::$factories) {
            static::$factories = (new FactoriesLoader)->load($factoriesPath);
        }
    }
private function loadFactories($factoriesPath)
    {
        $factoriesPath = $factoriesPath ?: static::$factoriesPath;

        if ( ! static::$factories) {
            static::$factories = (new FactoriesLoader)->load($factoriesPath);
        }
    }
private function loadFactories ( $ factoriesPath ) { $ factoriesPath = $ factoriesPath ? : static :: $ factoriesPath ; if ( ! static :: $ factories ) { static :: $ factories = ( new FactoriesLoader ) -> load ( $ factoriesPath ) ; } }
Load the user provided factories.

@param  string $factoriesPath
@return void
Load the user provided factories .