Skip to content

Commit

Permalink
Add support for Flysystem 3
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed Feb 8, 2022
1 parent 7ab13e6 commit d321161
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ All notable changes to `flysystem-encrypted` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## Unreleased
## [Unreleased]

### Added
- Flysystem 2 support.
- Flysystem 2 and 3 support.

### Changed
- Renamed `Swis\Flysystem\Encrypted\EncryptedAdapter` to `Swis\Flysystem\Encrypted\EncryptedFilesystemAdapter`.
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"php": "^7.2|^8.0",
"illuminate/encryption": "^6.0|^7.0|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0",
"league/flysystem": "^2.0"
"league/flysystem": "^2.0|^3.0"
},
"require-dev": {
"league/flysystem-adapter-test-utilities": "^2.0",
"league/flysystem-memory": "^2.0",
"league/flysystem-adapter-test-utilities": "^2.0|^3.0",
"league/flysystem-memory": "^2.0|^3.0",
"phpunit/phpunit": ">=8.0",
"squizlabs/php_codesniffer": "^3.0"
},
Expand Down
8 changes: 8 additions & 0 deletions src/EncryptedFilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ public function fileExists(string $path): bool
return $this->adapter->fileExists($path);
}

/**
* @inheritDoc
*/
public function directoryExists(string $path): bool
{
return $this->adapter->directoryExists($path);
}

/**
* @inheritDoc
*/
Expand Down

0 comments on commit d321161

Please sign in to comment.