Skip to content

Commit

Permalink
Update SFTP adapter to use league/flysystem-sftp-v3 (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytehead authored Dec 19, 2022
1 parent 33bb123 commit 31375bb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
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

0 comments on commit 31375bb

Please sign in to comment.