public static function factory($config = array())
    {
        $default = array(
            'base_uri' => 'https://{account_name}.blob.core.windows.net/'
        );
        $required = array('base_uri', 'account_name', 'account_key');
        $config = Collection::fromConfig($config, $default, $required);

        $client = new self(
            $config->get('base_uri'),
            $config->get('account_name'),
            $config->get('account_key')
        );

        return $client;
    }
public static function factory($config = array())
    {
        $default = array(
            'base_uri' => 'https://{account_name}.blob.core.windows.net/'
        );
        $required = array('base_uri', 'account_name', 'account_key');
        $config = Collection::fromConfig($config, $default, $required);

        $client = new self(
            $config->get('base_uri'),
            $config->get('account_name'),
            $config->get('account_key')
        );

        return $client;
    }
public static function factory ( $ config = array ( ) ) { $ default = array ( 'base_uri' => 'https://{account_name}.blob.core.windows.net/' ) ; $ required = array ( 'base_uri' , 'account_name' , 'account_key' ) ; $ config = Collection :: fromConfig ( $ config , $ default , $ required ) ; $ client = new self ( $ config -> get ( 'base_uri' ) , $ config -> get ( 'account_name' ) , $ config -> get ( 'account_key' ) ) ; return $ client ; }
Factory method to create a new StorageClient

@param array|Collection $config Configuration data. Array keys:
base_url     - Base URL of web service
account_name - Storage account name
account_key  - Storage account key (primary or secondary)

@return StorageClient
Factory method to create a new StorageClient