diff --git a/src/AdapterTestUtilities/composer.json b/src/AdapterTestUtilities/composer.json index fba98d69d..cd8c00f13 100644 --- a/src/AdapterTestUtilities/composer.json +++ b/src/AdapterTestUtilities/composer.json @@ -14,7 +14,7 @@ }, "require": { "php": "^8.0.2", - "league/flysystem": "^3.0.0" + "league/flysystem": "^4.0.0" }, "license": "MIT", "authors": [ diff --git a/src/AsyncAwsS3/composer.json b/src/AsyncAwsS3/composer.json index 34f8bfef7..6e48948fe 100644 --- a/src/AsyncAwsS3/composer.json +++ b/src/AsyncAwsS3/composer.json @@ -10,7 +10,7 @@ }, "require": { "php": "^8.0.2", - "league/flysystem": "^3.10.0", + "league/flysystem": "^4.0.0", "league/mime-type-detection": "^1.0.0", "async-aws/s3": "^1.5 || ^2.0" }, diff --git a/src/AwsS3V3/composer.json b/src/AwsS3V3/composer.json index e3c0dc7ec..dbead73b1 100644 --- a/src/AwsS3V3/composer.json +++ b/src/AwsS3V3/composer.json @@ -10,7 +10,7 @@ }, "require": { "php": "^8.0.2", - "league/flysystem": "^3.10.0", + "league/flysystem": "^4.0.0", "league/mime-type-detection": "^1.0.0", "aws/aws-sdk-php": "^3.295.10" }, diff --git a/src/AzureBlobStorage/composer.json b/src/AzureBlobStorage/composer.json index cff0448ad..2120a4d42 100644 --- a/src/AzureBlobStorage/composer.json +++ b/src/AzureBlobStorage/composer.json @@ -7,7 +7,7 @@ }, "require": { "php": "^8.0.2", - "league/flysystem": "^3.10.0", + "league/flysystem": "^4.0.0", "microsoft/azure-storage-blob": "^1.1" }, "license": "MIT", diff --git a/src/FilesystemReader.php b/src/FilesystemReader.php index 9e4acacf9..2b2a56755 100644 --- a/src/FilesystemReader.php +++ b/src/FilesystemReader.php @@ -9,10 +9,6 @@ /** * This interface contains everything to read from and inspect * a filesystem. All methods containing are non-destructive. - * - * @method string publicUrl(string $path, array $config = []) Will be added in 4.0 - * @method string temporaryUrl(string $path, DateTimeInterface $expiresAt, array $config = []) Will be added in 4.0 - * @method string checksum(string $path, array $config = []) Will be added in 4.0 */ interface FilesystemReader { @@ -82,4 +78,22 @@ public function mimeType(string $path): string; * @throws FilesystemException */ public function visibility(string $path): string; + + /** + * @throws UnableToGeneratePublicUrl + * @throws FilesystemException + */ + public function publicUrl(string $path, array $config = []): string; + + /** + * @throws UnableToGeneratePublicUrl + * @throws FilesystemException + */ + public function temporaryUrl(string $path, DateTimeInterface $expiresAt, array $config = []): string; + + /** + * @throws UnableToGeneratePublicUrl + * @throws FilesystemException + */ + public function checksum(string $path, array $config = []): string; } diff --git a/src/Ftp/composer.json b/src/Ftp/composer.json index e11e2ec62..ad18e8943 100644 --- a/src/Ftp/composer.json +++ b/src/Ftp/composer.json @@ -12,7 +12,7 @@ "require": { "php": "^8.0.2", "ext-ftp": "*", - "league/flysystem": "^3.0.0", + "league/flysystem": "^4.0.0", "league/mime-type-detection": "^1.0.0" }, "license": "MIT", diff --git a/src/GoogleCloudStorage/composer.json b/src/GoogleCloudStorage/composer.json index 8b1b5520c..d79f87d6d 100644 --- a/src/GoogleCloudStorage/composer.json +++ b/src/GoogleCloudStorage/composer.json @@ -12,7 +12,7 @@ "require": { "php": "^8.0.2", "google/cloud-storage": "^1.23", - "league/flysystem": "^3.10.0", + "league/flysystem": "^4.0.0", "league/mime-type-detection": "^1.0.0" }, "license": "MIT", diff --git a/src/InMemory/composer.json b/src/InMemory/composer.json index 30c45b985..828e01ba9 100644 --- a/src/InMemory/composer.json +++ b/src/InMemory/composer.json @@ -13,7 +13,7 @@ "require": { "php": "^8.0.2", "ext-fileinfo": "*", - "league/flysystem": "^3.0.0" + "league/flysystem": "^4.0.0" }, "license": "MIT", "authors": [ diff --git a/src/Local/composer.json b/src/Local/composer.json index cd9ef2540..b59f6a914 100644 --- a/src/Local/composer.json +++ b/src/Local/composer.json @@ -12,7 +12,7 @@ "require": { "php": "^8.0.2", "ext-fileinfo": "*", - "league/flysystem": "^3.0.0", + "league/flysystem": "^4.0.0", "league/mime-type-detection": "^1.0.0" }, "license": "MIT", diff --git a/src/PathPrefixing/composer.json b/src/PathPrefixing/composer.json index 213b1512b..9ef71d415 100644 --- a/src/PathPrefixing/composer.json +++ b/src/PathPrefixing/composer.json @@ -11,7 +11,7 @@ }, "require": { "php": "^8.0.2", - "league/flysystem": "^3.10.0" + "league/flysystem": "^4.0.0" }, "license": "MIT", "authors": [ diff --git a/src/PhpseclibV2/composer.json b/src/PhpseclibV2/composer.json index 85638546b..734b56e78 100644 --- a/src/PhpseclibV2/composer.json +++ b/src/PhpseclibV2/composer.json @@ -9,7 +9,7 @@ }, "require": { "php": "^8.0.2", - "league/flysystem": "^3.0.0", + "league/flysystem": "^4.0.0", "league/mime-type-detection": "^1.0.0", "phpseclib/phpseclib": "^2.0" }, diff --git a/src/PhpseclibV3/ConnectionProvider.php b/src/PhpseclibV3/ConnectionProvider.php index 6f15bffe0..bc5011fc7 100644 --- a/src/PhpseclibV3/ConnectionProvider.php +++ b/src/PhpseclibV3/ConnectionProvider.php @@ -6,10 +6,9 @@ use phpseclib3\Net\SFTP; -/** - * @method void disconnect() - */ interface ConnectionProvider { public function provideConnection(): SFTP; + + public function disconnect(): void; } diff --git a/src/PhpseclibV3/composer.json b/src/PhpseclibV3/composer.json index dc9f86c00..96b24ad99 100644 --- a/src/PhpseclibV3/composer.json +++ b/src/PhpseclibV3/composer.json @@ -9,7 +9,7 @@ }, "require": { "php": "^8.0.2", - "league/flysystem": "^3.0.14", + "league/flysystem": "^4.0.0", "league/mime-type-detection": "^1.0.0", "phpseclib/phpseclib": "^3.0" }, diff --git a/src/ReadOnly/composer.json b/src/ReadOnly/composer.json index aa7d95c2f..a0cb82c17 100644 --- a/src/ReadOnly/composer.json +++ b/src/ReadOnly/composer.json @@ -11,7 +11,7 @@ }, "require": { "php": "^8.0.2", - "league/flysystem": "^3.10.0" + "league/flysystem": "^4.0.0" }, "license": "MIT", "authors": [ diff --git a/src/WebDAV/composer.json b/src/WebDAV/composer.json index da83b9397..3dd79bb27 100644 --- a/src/WebDAV/composer.json +++ b/src/WebDAV/composer.json @@ -9,7 +9,7 @@ }, "require": { "php": "^8.0.2", - "league/flysystem": "^3.6.0", + "league/flysystem": "^4.0.0", "sabre/dav": "^4.6.0" }, "license": "MIT", diff --git a/src/ZipArchive/composer.json b/src/ZipArchive/composer.json index bae5759f4..67e206ad1 100644 --- a/src/ZipArchive/composer.json +++ b/src/ZipArchive/composer.json @@ -12,7 +12,7 @@ "require": { "php": "^8.0.2", "ext-zip": "*", - "league/flysystem": "^3.0.0", + "league/flysystem": "^4.0.0", "league/mime-type-detection": "^1.0.0" }, "license": "MIT",