aimeos /
ai-filesystem
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0 |
||
| 5 | * @copyright Aimeos (aimeos.org), 2015-2025 |
||
| 6 | * @package Base |
||
| 7 | * @subpackage Filesystem |
||
| 8 | */ |
||
| 9 | |||
| 10 | |||
| 11 | namespace Aimeos\Base\Filesystem; |
||
| 12 | |||
| 13 | use League\Flysystem\Filesystem; |
||
| 14 | use League\Flysystem\Ftp\FtpAdapter; |
||
|
0 ignored issues
–
show
|
|||
| 15 | |||
| 16 | |||
| 17 | /** |
||
| 18 | * Implementation of Flysystem FTP file system adapter |
||
| 19 | * |
||
| 20 | * @package Base |
||
| 21 | * @subpackage Filesystem |
||
| 22 | */ |
||
| 23 | class FlyFtp extends FlyBase implements Iface, DirIface, MetaIface |
||
| 24 | { |
||
| 25 | private ?Filesystem $fs = null; |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns the file system provider |
||
| 30 | * |
||
| 31 | * @return \League\Flysystem\Filesystem File system provider |
||
| 32 | */ |
||
| 33 | protected function getProvider() |
||
| 34 | { |
||
| 35 | if( !isset( $this->fs ) ) |
||
| 36 | { |
||
| 37 | $options = \League\Flysystem\Ftp\FtpConnectionOptions::fromArray( $this->getConfig() ); |
||
|
0 ignored issues
–
show
The type
League\Flysystem\Ftp\FtpConnectionOptions was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 38 | $this->fs = new Filesystem( new FtpAdapter( $options ) ); |
||
| 39 | } |
||
| 40 | |||
| 41 | return $this->fs; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths