public function getObject($bucket, $key, array $params = []) { return $this->instance->getObject($bucket, $key, $params); }
/** * @inheritdoc */ public function getContents($key) { $this->recentKey = $key; try { $data = (string) $this->s3Client->getObject($this->bucket, $key)['Body']; } catch (NoSuchKeyException $e) { throw new StorageException(StorageException::FAILED_TO_READ); } return $data; }