コード例 #1
0
ファイル: S3Url.php プロジェクト: vuhoanglinh2002/drupal
 /**
  * Override __construct() to default scheme to s3.
  *
  * @param string $bucket
  *   The bucket to use for the URL.
  * @param string $key
  *   (optional) Key for the URL.
  */
 public function __construct($bucket, $key = null)
 {
     if ($key) {
         $key = '/' . $key;
     }
     parent::__construct('s3', $bucket, null, null, null, $key);
 }