for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2015-2022
* @package Base
* @subpackage Filesystem
*/
namespace Aimeos\Base\Filesystem;
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Ftp as FtpAdapter;
* Implementation of Flysystem FTP file system adapter
*
class FlyFtp extends FlyBase implements Iface, DirIface, MetaIface
{
private $fs;
* Returns the file system provider
* @return \League\Flysystem\FilesystemInterface File system provider
protected function getProvider()
if( !isset( $this->fs ) )
$config = $this->getConfig();
$this->fs = new Filesystem( new FtpAdapter( $config ) );
}
return $this->fs;