class CloudFrontClient in AmazonS3 7.2
Same name in this branch
- 7.2 src/CloudFrontClient.php \Drupal\amazons3\CloudFrontClient
- 7.2 tests/Stub/CloudFrontClient.php \Drupal\amazons3Test\Stub\CloudFrontClient
@class CloudFrontClient @package Drupal\amazons3
Hierarchy
- class \Drupal\amazons3\CloudFrontClient extends \Aws\CloudFront\CloudFrontClient uses \DrupalAdapter\Bootstrap
Expanded class hierarchy of CloudFrontClient
File
- src/
CloudFrontClient.php, line 9
Namespace
Drupal\amazons3View source
class CloudFrontClient extends \Aws\CloudFront\CloudFrontClient {
use DrupalAdapter\Bootstrap;
/**
* Override factory() to set credential defaults.
*/
public static function factory($config = array()) {
if (!isset($config['private_key'])) {
$config['private_key'] = static::variable_get('amazons3_cloudfront_private_key');
$config['key_pair_id'] = static::variable_get('amazons3_cloudfront_keypair_id');
}
return parent::factory($config);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CloudFrontClient:: |
public static | function | Override factory() to set credential defaults. |