1
0

update readme and phpdocs

This commit is contained in:
frostealth
2017-04-14 01:17:53 +06:00
parent 0ea83425cb
commit ccc7e2b116
2 changed files with 6 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ $result = $s3->commands()->upload('filename.ext', '/path/to/local/file.ext')->wi
$result = $s3->commands()->restore('filename.ext', $days = 7)->execute(); $result = $s3->commands()->restore('filename.ext', $days = 7)->execute();
$result = $s3->commands()->list('/path')->execute(); $result = $s3->commands()->list('path/')->execute();
/** @var bool $exist */ /** @var bool $exist */
$exist = $s3->commands()->exist('filename.ext')->execute(); $exist = $s3->commands()->exist('filename.ext')->execute();
@@ -86,6 +86,8 @@ $result = $s3->upload('filename.ext', '/path/to/local/file.ext');
$result = $s3->restore('filename.ext', $days = 7); $result = $s3->restore('filename.ext', $days = 7);
$result = $s3->list('path/');
/** @var bool $exist */ /** @var bool $exist */
$exist = $s3->exist('filename.ext'); $exist = $s3->exist('filename.ext');
@@ -110,6 +112,8 @@ $promise = $s3->commands()->put('filename.ext', 'body')->async()->execute();
$promise = $s3->commands()->delete('filename.ext')->async()->execute(); $promise = $s3->commands()->delete('filename.ext')->async()->execute();
$promise = $s3->commands()->upload('filename.ext', 'source')->async()->execute(); $promise = $s3->commands()->upload('filename.ext', 'source')->async()->execute();
$promise = $s3->commands()->list('path/')->async()->execute();
``` ```
## Advanced usage ## Advanced usage

View File

@@ -20,6 +20,7 @@ use yii\helpers\ArrayHelper;
* @method ResultInterface delete(string $filename) * @method ResultInterface delete(string $filename)
* @method ResultInterface upload(string $filename, $source) * @method ResultInterface upload(string $filename, $source)
* @method ResultInterface restore(string $filename, int $days) * @method ResultInterface restore(string $filename, int $days)
* @method ResultInterface list(string $prefix)
* @method bool exist(string $filename) * @method bool exist(string $filename)
* @method string getUrl(string $filename) * @method string getUrl(string $filename)
* @method string getPresignedUrl(string $filename, $expires) * @method string getPresignedUrl(string $filename, $expires)