示例#1
0
 public function test()
 {
     $test = $this->connection->getBucketAcl(array('Bucket' => $this->bucket));
     if (isset($test) && !is_null($test->getPath('Owner/ID'))) {
         return true;
     }
     return false;
 }
示例#2
0
文件: S3.php 项目: Webiny/Framework
 /**
  * Get access control policy for the bucket
  *
  * @param string $bucket
  *
  * @return mixed
  */
 public function getBucketAcl($bucket)
 {
     $params['Bucket'] = $bucket;
     return $this->instance->getBucketAcl($params);
 }
示例#3
0
 /**
  * getAcl
  *
  * @return \Guzzle\Service\Resource\Model
  */
 public function getAcl()
 {
     return $this->client->getBucketAcl(['Bucket' => $this->name]);
 }