Exemplo n.º 1
0
 /**
  * @param string $indexHTML
  * @return void
  */
 protected function distribute($indexHTML)
 {
     $tempFile = tempnam(sys_get_temp_dir(), 'gbslogistics_emotes_index_html');
     file_put_contents($tempFile, $indexHTML);
     $this->client->putObject('index.html', $tempFile);
     unlink($tempFile);
 }
Exemplo n.º 2
0
 /**
  * @param string $key
  * @param string $filename
  * @return \Aws\Result
  */
 public function putObject($key, $filename)
 {
     return $this->client->putObject(['Bucket' => $this->getBucket(), 'Key' => $key, 'SourceFile' => $filename, 'ACL' => 'public-read']);
 }