Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SFTP adapter to use league/flysystem-sftp-v3 #272

Merged
merged 3 commits into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion doc/adapter_sftp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Factory/Adapter/SftpFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/adapters.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<argument/><!-- VisibilityConverter -->
<argument/><!-- MimeTypeDetector -->
</service>
<service id="oneup_flysystem.adapter.sftp" class="League\Flysystem\PhpseclibV2\SftpAdapter" abstract="true" public="false">
<service id="oneup_flysystem.adapter.sftp" class="League\Flysystem\PhpseclibV3\SftpAdapter" abstract="true" public="false">
<argument/><!-- options -->
<argument/><!-- root -->
<argument/><!-- VisibilityConverter -->
Expand Down