src/Guzzle/Service/Builder/ServiceBuilder.php
public static function factory($config = null, array $globalParameters = array())
    {
        // @codeCoverageIgnoreStart
        if (!static::$cachedFactory) {
            static::$cachedFactory = new ServiceBuilderLoader();
        }
        // @codeCoverageIgnoreEnd

        return self::$cachedFactory->load($config, $globalParameters);
    }
public static function factory($config = null, array $globalParameters = array())
    {
        // @codeCoverageIgnoreStart
        if (!static::$cachedFactory) {
            static::$cachedFactory = new ServiceBuilderLoader();
        }
        // @codeCoverageIgnoreEnd

        return self::$cachedFactory->load($config, $globalParameters);
    }
public static function factory ( $ config = null , array $ globalParameters = array ( ) ) { // @codeCoverageIgnoreStart if ( ! static :: $ cachedFactory ) { static :: $ cachedFactory = new ServiceBuilderLoader ( ) ; } // @codeCoverageIgnoreEnd return self :: $ cachedFactory -> load ( $ config , $ globalParameters ) ; }
Create a new ServiceBuilder using configuration data sourced from an
array, .js|.json or .php file.

@param array|string $config           The full path to an .json|.js or .php file, or an associative array
@param array        $globalParameters Array of global parameters to pass to every service as it is instantiated.

@return ServiceBuilderInterface
@throws ServiceBuilderException if a file cannot be opened
@throws ServiceNotFoundException when trying to extend a missing client
Create a new ServiceBuilder using configuration data sourced from an array . js| . json or . php file .