Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure you want to rename?
SAFE MODE
/
modules
/
backup
/
vendor
/
backup-manager
/
backup-manager
/
src
/
Filesystems
:
FtpFilesystem.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace BackupManager\Filesystems; use League\Flysystem\Adapter\Ftp; use League\Flysystem\Filesystem as Flysystem; /** * Class FtpFilesystem * @package BackupManager\Filesystems */ class FtpFilesystem implements Filesystem { /** * Test fitness of visitor. * @param $type * @return bool */ public function handles($type) { return strtolower($type) == 'ftp'; } /** * @param array $config * @return Flysystem */ public function get(array $config) { return new Flysystem(new Ftp($config)); } }