Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  *
  * @throws \Exception
  * @param string $localFile
  * @param string $assetFile
  * @param boolean $aclPublic
  * @return boolean true
  */
 protected function internalPut($localFile, $assetFile, $aclPublic = true)
 {
     $acl = $aclPublic ? CannedAcl::PUBLIC_READ : CannedAcl::PRIVATE_ACCESS;
     $this->s3Client->putObject(['Bucket' => $this->bucket, 'Key' => $assetFile, 'SourceFile' => $localFile, 'ACL' => $acl]);
     return true;
 }