public function make($class, $hostname, $user, $password, $port = 22, $fingerprint = null)
    {
        if ($class === Ssh2SftpConnectionInterface::class) {
            $class = $this->getDefaultConnectionClass();
        }

        return new $class($hostname, $user, $password, $port, $fingerprint, app('files'));
    }
public function make($class, $hostname, $user, $password, $port = 22, $fingerprint = null)
    {
        if ($class === Ssh2SftpConnectionInterface::class) {
            $class = $this->getDefaultConnectionClass();
        }

        return new $class($hostname, $user, $password, $port, $fingerprint, app('files'));
    }
public function make ( $ class , $ hostname , $ user , $ password , $ port = 22 , $ fingerprint = null ) { if ( $ class === Ssh2SftpConnectionInterface :: class ) { $ class = $ this -> getDefaultConnectionClass ( ) ; } return new $ class ( $ hostname , $ user , $ password , $ port , $ fingerprint , app ( 'files' ) ) ; }
Makes an SSH2SFTP connection instance.

@param string $class the connection class to use
@param string $hostname
@param string $user
@param string $password
@param int    $port
@param string $fingerprint
@return Ssh2SftpConnectionInterface
Makes an SSH2SFTP connection instance .