Parameters for this adapter: - (string) key Your AWS access key - (string) secret Your AWS secret key - (string) bucket The name of the bucket to store the files in. The bucket should exist prior to using this client. Imbo will not try to automatically add the bucket for you.
Автор: Christer Edvartsen (cogo@starzinger.net)
Наследование: implements Imbo\Storage\StorageInterface
Пример #1
0
 /**
  * @covers Imbo\Storage\S3::getStatus
  */
 public function testGetStatus()
 {
     $this->assertTrue($this->getDriver()->getStatus());
     $driver = new S3(['key' => $GLOBALS['AWS_S3_KEY'], 'secret' => $GLOBALS['AWS_S3_SECRET'], 'bucket' => uniqid()]);
     $this->assertFalse($driver->getStatus());
 }