示例#1
0
 public function testDefaultConfig()
 {
     $config = AwsClient::defaultConfig();
     $this->assertNotEmpty($config);
     $this->assertArrayHasKey('region', $config);
     $this->assertEquals($config['region'], Config::get('aws.region'));
 }
示例#2
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->config['region'] = 'us-east-1';
     //cloudfront only uses us-east-1
     $this->client = new CloudFrontClient($this->config);
 }
示例#3
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->client = new S3Client($this->config);
 }
示例#4
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->client = new URLRequest();
 }