1up-lab / OneupFlysystemBundle

A Flysystem integration for your Symfony projects.
MIT License
630 stars 119 forks source link

Cannot use with league/flysystem-sftp:^3.0 #274

Closed nhung-le closed 1 year ago

nhung-le commented 1 year ago

Bug Report

Q A
BC Break yes
Version 4.5.0

Summary

Package league/flysystem-sftp is abandoned, you should avoid using it. Use league/flysystem-sftp-v3 instead.

So I installed league/flysystem-sftp-v3 using composer. But I can't do last step cache clear anymore because it keeps saying:

In getOneupFlysystem_MediaFsFilesystemService.php line 25:

  Class "League\Flysystem\PhpseclibV2\SftpAdapter" not found

How to reproduce


- that OneupFlysystemBundle still load `League\Flysystem\PhpseclibV2\SftpAdapter` which will cause this issue. because in the new bundle `league/flysystem-sftp-v3` it should be `League\Flysystem\PhpseclibV3\SftpAdapter`. 
- Other file paths should be the same since the biggest problem is `flysystem-sftp-v3` requires [phpseclib/phpseclib](https://packagist.org/packages/phpseclib/phpseclib): ^3.0

If you could support this, thank you very much!! 🙏 
bytehead commented 1 year ago

It will be fixed with #272

bytehead commented 1 year ago

Duplicate of #270.