Skip to content

Commit

Permalink
Merge pull request #18 from forkgroup/dev-v2.0
Browse files Browse the repository at this point in the history
Upgraded `league/flysystem` to `^2.0`.
  • Loading branch information
overtrue authored Jul 7, 2021
2 parents efa7578 + 4f4d8a8 commit d9850cf
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 230 deletions.
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,29 +67,23 @@ bool $flysystem->write('file.md', 'http://httpbin.org/robots.txt', ['mime' => 'a

bool $flysystem->writeStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));

bool $flysystem->update('file.md', 'new contents');

bool $flysystem->updateStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));

bool $flysystem->rename('foo.md', 'bar.md');
bool $flysystem->move('foo.md', 'bar.md');

bool $flysystem->copy('foo.md', 'foo2.md');

bool $flysystem->delete('file.md');

bool $flysystem->has('file.md');
bool $flysystem->fileExists('file.md');

string|mixed|false $flysystem->read('file.md');

array $flysystem->listContents();

array|false $flysystem->getMetadata('file.md');

int $flysystem->getSize('file.md');
int $flysystem->fileSize('file.md');

string $flysystem->getMimetype('file.md');
string $flysystem->mimeType('file.md');

int $flysystem->getTimestamp('file.md');
int $flysystem->lastModified('file.md');

// 插件提供的方法
string $flysystem->getUrl('foo.md');
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Flysystem adapter for the QCloud COS storage.",
"require": {
"php": ">=7.4",
"league/flysystem": "^1.0",
"league/flysystem": "^2.0",
"overtrue/qcloud-cos-client": "^1.0.0"
},
"require-dev": {
Expand Down
Loading

0 comments on commit d9850cf

Please sign in to comment.