From 31375bb7219fb83f37c3fda5fe3668061a4072f6 Mon Sep 17 00:00:00 2001 From: David Greminger Date: Mon, 19 Dec 2022 10:40:06 -0600 Subject: [PATCH] Update SFTP adapter to use league/flysystem-sftp-v3 (#272) --- composer.json | 4 ++-- doc/adapter_sftp.md | 2 +- doc/index.md | 2 +- src/DependencyInjection/Factory/Adapter/SftpFactory.php | 2 +- src/Resources/config/adapters.xml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index a201af3..ea6b6e9 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "league/flysystem-ftp": "^2.0 || ^3.0", "league/flysystem-google-cloud-storage": "^2.0 || ^3.0", "league/flysystem-memory": "^2.0 || ^3.0", - "league/flysystem-sftp": "^2.0 || ^3.0", + "league/flysystem-sftp-v3": "^2.0 || ^3.0", "league/flysystem-azure-blob-storage": "^3.0", "phpstan/phpstan": "^1.4", "phpunit/phpunit": "^9.5", @@ -59,7 +59,7 @@ "league/flysystem-async-aws-s3": "Use flysystem S3 adapter from AsyncAws", "league/flysystem-aws-s3-v3": "Use S3 storage with AWS SDK v3", "league/flysystem-google-cloud-storage": "Use Google Cloud Storage Adapter for Flysystem", - "league/flysystem-sftp": "Allows SFTP server storage via phpseclib", + "league/flysystem-sftp-v3": "Allows SFTP server storage via phpseclib", "royvoetman/flysystem-gitlab-storage": "Use Gitlab Storage filesystem for Flysystem" }, "config": { diff --git a/doc/adapter_sftp.md b/doc/adapter_sftp.md index 42b2916..be118fd 100644 --- a/doc/adapter_sftp.md +++ b/doc/adapter_sftp.md @@ -14,7 +14,7 @@ oneup_flysystem: root: '/upload' ``` -For more details on the other parameters, take a look at the [Flysystem documentation](https://flysystem.thephpleague.com/v2/docs/adapter/sftp/). +For more details on the other parameters, take a look at the [Flysystem documentation](https://flysystem.thephpleague.com/docs/adapter/sftp-v3/). ## More to know * [Create and use your filesystem](filesystem_create.md) diff --git a/doc/index.md b/doc/index.md index 9e8b389..8e7291c 100644 --- a/doc/index.md +++ b/doc/index.md @@ -23,7 +23,7 @@ Composer will now fetch and install this bundle in the vendor directory `vendor/ * The AwsS3v3 adapter requires `"league/flysystem-aws-s3-v3"` * The FTP adapter requires `"league/flysystem-ftp"` -* The SFTP adapter requires `"league/flysystem-sftp"` +* The SFTP (V3) adapter requires `"league/flysystem-sftp-v3"` * The Google Cloud Storage adapter requires `"league/flysystem-google-cloud-storage"` * The InMemory adapter requires `"league/flysystem-memory"` * The AsyncAwsS3 adapter requires `"league/flysystem-async-aws-s3"` diff --git a/src/DependencyInjection/Factory/Adapter/SftpFactory.php b/src/DependencyInjection/Factory/Adapter/SftpFactory.php index a5a1e2d..f5a5403 100644 --- a/src/DependencyInjection/Factory/Adapter/SftpFactory.php +++ b/src/DependencyInjection/Factory/Adapter/SftpFactory.php @@ -4,7 +4,7 @@ namespace Oneup\FlysystemBundle\DependencyInjection\Factory\Adapter; -use League\Flysystem\PhpseclibV2\SftpConnectionProvider; +use League\Flysystem\PhpseclibV3\SftpConnectionProvider; use Oneup\FlysystemBundle\DependencyInjection\Factory\AdapterFactoryInterface; use Symfony\Component\Config\Definition\Builder\NodeDefinition; use Symfony\Component\DependencyInjection\ChildDefinition; diff --git a/src/Resources/config/adapters.xml b/src/Resources/config/adapters.xml index 3a7f304..dfed128 100644 --- a/src/Resources/config/adapters.xml +++ b/src/Resources/config/adapters.xml @@ -26,7 +26,7 @@ - +