Beispiel #1
0
 /**
  * @param \Aws\S3\S3Client
  * @return bool
  * @throws \InvalidArgumentException
  */
 public function setConnection($connection)
 {
     if (!$connection instanceof S3Client) {
         throw new \InvalidArgumentException('Connection must be an instance of S3Client.');
     }
     return parent::setConnection($connection);
 }
Beispiel #2
0
 public function __construct($options = array())
 {
     parent::__construct();
     if (!empty($options['doc_root'])) {
         $this->doc_root = $options['doc_root'];
     }
     if (!empty($options['container'])) {
         $this->container = $options['container'];
     }
 }
Beispiel #3
0
 /**
  * @return \AmazonS3
  */
 public function getConnection()
 {
     return parent::getConnection();
 }